How to show different colours as different regions (by assigning different grey level values to each region corresponding to a particular colour)
3 ビュー (過去 30 日間)
古いコメントを表示
Need help
0 件のコメント
採用された回答
Walter Roberson
2017 年 5 月 9 日
Use a labeled array and ind2rgb()
2 件のコメント
Walter Roberson
2017 年 5 月 9 日
Start with (for example) http://blogs.mathworks.com/steve/2006/11/17/labeling-labeled-objects/ . Once you have the L matrix, pass it to ind2rgb() along with a colormap; see https://www.mathworks.com/help/matlab/ref/ind2rgb.html
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!