Read the screen value according to the colorbar
Show older comments
i have a picture with color bar and now we can see blue square if i want collect (For example the second picture) i only write
img1 = imread('10245.jpg');
img = 1*double(img1)
but data show 100 90 120 and so on.... how i should do


Accepted Answer
More Answers (1)
Image Analyst
on 21 Nov 2023
0 votes
If you are really starting with an RGB image of an indexed image that has been pseudocolored with a colormap, then you will need to "undo" the colormap to get back to the original values. See my File Exchange entry where I get the actual temperature image (floating point numbers in degrees Celsius) from a pseducolored RGB image.
Categories
Find more on Blue 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!