how to convert 456*640*3 logical in to 456*640 logical image

4 visualizaciones (últimos 30 días)
HARITHA Nambiar
HARITHA Nambiar el 13 de Mzo. de 2018
Respondida: Walter Roberson el 13 de Mzo. de 2018
what is the code to convert an image with 456*640*3 logical to an image with 456*640 logical

Respuestas (1)

Walter Roberson
Walter Roberson el 13 de Mzo. de 2018
all(Your3DLogical, 3) %3 planes are all set
or
any(Your3DLogical, 3) %any of planes are set
or
sum(Your3DLogical, 3) >= 2 %majority: at least 2 planes are set

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by