필터 지우기
필터 지우기

different color for different region of image

조회 수: 1 (최근 30일)
chess
chess 2014년 8월 31일
댓글: Image Analyst 2014년 9월 1일
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.

채택된 답변

Image Analyst
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
chess
chess 2014년 9월 1일
편집: chess 2014년 9월 1일
Another problem I have is when I do it for one part using imfreehand how can I hold an image to do it for another region because if I redo the script again it will overwrite the previous one?
Image Analyst
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 CenterFile Exchange에서 Blue에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by