How do i determine the pixel coordinates of an image using RGB values?

Respuestas (1)

image=imread('peppers.png');
R=image(:,:,1);%red chanel
[x,y]=find(and(R>=230,R<=250));%here coordinates

Categorías

Etiquetas

Preguntada:

el 10 de Dic. de 2019

Respondida:

el 10 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by