How to show different colours as different regions (by assigning different grey level values to each region corresponding to a particular colour)
1 次查看(过去 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!