Detecting white in a black and white images

7 visualizaciones (últimos 30 días)
Lu Yaseen
Lu Yaseen el 21 de Abr. de 2014
Respondida: Image Analyst el 21 de Abr. de 2014
Hi guys, new in image processing here
i was wondering if there is a way to be able to detect the coordinates of white , in a black and white image? as matrix or something?
i just need to get the values to be able to compare it with other values.
hope i was clear thanks,

Respuestas (1)

Image Analyst
Image Analyst el 21 de Abr. de 2014
It would be helpful to know the larger context because knowing a list of row and column locations for a binary image is usually not needed, but here is what you asked for:
[rows, columns] = find(yourLogicalImage); % For a binary image
[rows, columns] = find(yourGrayscaleImage == 255); % For a uint8 gray scale image

Community Treasure Hunt

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

Start Hunting!

Translated by