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!