show an image as categorised

1 vue (au cours des 30 derniers jours)
Hassan
Hassan le 29 Juin 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?

Réponses (2)

Walter Roberson
Walter Roberson le 29 Juin 2011
Perhaps you could use contour() and supply the level list
  9 commentaires
Walter Roberson
Walter Roberson le 30 Juin 2011
Which direction does using Myimg(:,:,1) display relative to what you would like displayed?
Hassan
Hassan le 30 Juin 2011
well in the array I want to have each pixel displayed according to its row and column.

Connectez-vous pour commenter.


Sean de Wolski
Sean de Wolski le 29 Juin 2011
Perhaps you could convert it to be identical to a label image and then use label2rgb to show it?
  6 commentaires
Hassan
Hassan le 29 Juin 2011
a(:,:,1) =
0.1000 0
0.0050 0.5000
a(:,:,2) =
0.1500 0.0500
0.0550 0.5500
a(:,:,3) =
0.2000 0
0.0100 1.0000
for example in the array a, I want to have 3 category like:
a(:,:,1):
0.001 to 0.005>>blue
0.006 to 0.1>>green
0.1 to 0.5>> yellow
for a(:,:,2):
0.01 to 0.05>>blue
0.06 to 0.15>>green
0.16 to 0.55>> red
and so on
Hassan
Hassan le 30 Juin 2011
sorry Sean, I didnt underestand what I should do.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by