RGB information about a specific point in a image

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.

 Respuesta aceptada

Chad Greene
Chad Greene el 4 de Nov. de 2015
Editada: Chad Greene el 4 de Nov. de 2015
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.

Más respuestas (0)

Categorías

Más información sobre Display Image en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Nov. de 2015

Comentada:

el 4 de Nov. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by