returning the indexes of an image displayed with a specific colormap
Afficher commentaires plus anciens
hi, does anyone know hot to get the numeric indexes of a displayed image with a specific user defined colormap???
for example imagesc(IMAGE) colormap(user_colormap)
displays an image mapped into the colormap....and I want the numeric representation of the displayed image.
5 commentaires
Kevin Claytor
le 14 Août 2012
Can you be more specific on what you want to do? You already have the numeric data - it's stored in IMAGE. If you want to look at that on the screen, you can print out a certain range; "IMAGE(1:10,1:10)" or get a single pixel value with the cursor + sticky note icon in the figure toolbar.
Mario Trevino
le 14 Août 2012
Matt Fig
le 14 Août 2012
What format is the IMAGE? m-by-n-by-3 or m-by-n or what?
Sean de Wolski
le 14 Août 2012
That's what IMAGE is.... It's just a 2d matrix of indices into the colormap.
Mario Trevino
le 14 Août 2012
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Blue dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!