Get pixel where the intensity is 255

1 visualización (últimos 30 días)
valerio auricchio
valerio auricchio el 30 de Oct. de 2020
Comentada: Ameer Hamza el 30 de Oct. de 2020
Hi I have an immage 2048x2448 grayscale, I want to find all the pixel where the intensity is "255".
After i have find them i want to print this point on the immage

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 30 de Oct. de 2020
img; % 2048x2448 matrix
[r, c] = find(img==255); % r and c contain all row and columns
If you want to mark these points on the image
plot(c, r, '+')
It will draw '+' marker at those locations.
  7 comentarios
valerio auricchio
valerio auricchio el 30 de Oct. de 2020
thx a lot!
Ameer Hamza
Ameer Hamza el 30 de Oct. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by