show an image as categorised
1 次查看(过去 30 天)
显示 更早的评论
I have an image with 3 layers (R,G,B). I want to show each layer as a cateogorised image as I can define the range of values in each category. I also want to add a legend as it show the range of values and the assigned color, a map scale (in kilometer) and geographical north direction. for eaxample I want to show the layer 1 as: 0.05-0.1>>blue 0.1-0.15>>green 0.15-0.2>>yellow 0.2-0.25>>red
Could you please help me about that?
0 个评论
回答(2 个)
Walter Roberson
2011-6-29
Perhaps you could use contour() and supply the level list
9 个评论
Walter Roberson
2011-6-30
Which direction does using Myimg(:,:,1) display relative to what you would like displayed?
Sean de Wolski
2011-6-29
Perhaps you could convert it to be identical to a label image and then use label2rgb to show it?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!