flattenImages - How do I control the number of channels in the flattened images?

Réponse

You can use the numberOfChannels parameter, which accepts values such as "COLOR_IMAGE", "GRAY_SCALE_IMAGE", or a specific integer value.
¿Te ayudó esta respuesta?
flattenImages

image

Doc : flattenImages