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.

 채택된 답변

Chad Greene
Chad Greene 2015년 11월 4일
편집: Chad Greene 2015년 11월 4일
To get the RGB of row 30, column 45,
I = imread('pears.png');
squeeze(I(30,45,:))
Or to get the values by mouse click you can use colorpicker.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Display Image에 대해 자세히 알아보기

태그

질문:

2015년 11월 4일

댓글:

2015년 11월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by