MATLAB Answers

show an image as categorised

1 view (last 30 days)
Hassan
Hassan on 29 Jun 2011
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?

Answers (2)

Walter Roberson
Walter Roberson on 29 Jun 2011
Perhaps you could use contour() and supply the level list
  9 Comments
Hassan
Hassan on 30 Jun 2011
well in the array I want to have each pixel displayed according to its row and column.

Sign in to comment.


Sean de Wolski
Sean de Wolski on 29 Jun 2011
Perhaps you could convert it to be identical to a label image and then use label2rgb to show it?
  6 Comments
Hassan
Hassan on 30 Jun 2011
sorry Sean, I didnt underestand what I should do.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!