How to find foreground pixels between two specified pixel locations in a connected component

Respuestas (1)

What do you mean "Connected component"?
n = max(x2-x1,y2-y1);
n = abs(n)+1; % number of pixels between coordinates
indy = linspace(y1,y2,n);
indx = linspace(x1,x2,n);
indy = round(indy); % indices of pixels you wnat
indx = round(indx);

Categorías

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

Preguntada:

el 27 de Mzo. de 2019

Respondida:

el 27 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by