returning the indexes of an image displayed with a specific colormap
Ältere Kommentare anzeigen
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 Kommentare
Kevin Claytor
am 14 Aug. 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
am 14 Aug. 2012
Matt Fig
am 14 Aug. 2012
What format is the IMAGE? m-by-n-by-3 or m-by-n or what?
Sean de Wolski
am 14 Aug. 2012
That's what IMAGE is.... It's just a 2d matrix of indices into the colormap.
Mario Trevino
am 14 Aug. 2012
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Images finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!