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

2 vues (au cours des 30 derniers jours)
HARITHA Nambiar
HARITHA Nambiar le 13 Mar 2018
what is the code to convert an image with 456*640*3 logical to an image with 456*640 logical

Réponses (1)

Walter Roberson
Walter Roberson le 13 Mar 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

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by