How to extract coordinates from the pattern

5 visualizaciones (últimos 30 días)
Balaji M. Sontakke
Balaji M. Sontakke el 26 de Oct. de 2016
Respondida: Thorsten el 26 de Oct. de 2016
Dear sir, i would like to extract all coordinates (white pixels) from the attached image. plz help to sort out, thanks in advance

Respuestas (1)

Thorsten
Thorsten el 26 de Oct. de 2016
white = 1; % or 255, depending on the format of your image
[cy, cx] = ind2sub(size(I), find(I==1));

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by