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!