how to convert 456*640*3 logical in to 456*640 logical image
1 次查看(过去 30 天)
显示 更早的评论
what is the code to convert an image with 456*640*3 logical to an image with 456*640 logical
0 个评论
回答(1 个)
Walter Roberson
2018-3-13
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!