returning the indexes of an image displayed with a specific colormap
Show older comments
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 Comments
Kevin Claytor
on 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
on 14 Aug 2012
Matt Fig
on 14 Aug 2012
What format is the IMAGE? m-by-n-by-3 or m-by-n or what?
Sean de Wolski
on 14 Aug 2012
That's what IMAGE is.... It's just a 2d matrix of indices into the colormap.
Mario Trevino
on 14 Aug 2012
Accepted Answer
More Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!