RGB information about a specific point in a image
2 views (last 30 days)
Show older comments
Is there a command that would give me the information about the color (RGB) of an specific point in an image? A command that I would insert the coordinates of the point and would give back something like RGB = [165 59 46], for example.
0 Comments
Accepted Answer
Chad Greene
on 4 Nov 2015
Edited: Chad Greene
on 4 Nov 2015
To get the RGB of row 30, column 45,
I = imread('pears.png');
squeeze(I(30,45,:))
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!