
different color for different region of image
5 ビュー (過去 30 日間)
古いコメントを表示
Hi I have an image, I wonder how to assign different color for different region in the image? For example how can I choose one colormap for blue rectangle and one colormap for green rectangle and the rest of figure uses different colormap.

0 件のコメント
採用された回答
Image Analyst
2014 年 8 月 31 日
That's precisely what my demo does. It's attached below the image. I have a freehand region version (also attached) if you're interested.

4 件のコメント
Image Analyst
2014 年 9 月 1 日
Well don't run that part of the script again - the part that reads in the original image. Just run the part that asks for the region and colorizes it. Put it in a for or while loop if you want.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で White についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!