how to find coordinates of specific pixel l value?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad Hammad Malik
el 18 de En. de 2019
Comentada: Image Analyst
el 3 de Feb. de 2019
hello all,
i want to find the x,y coordinates of specific pixel value. how i can find that.kindly guide me thanks.
see attach image. this represts the pixel values of binary image, now i want to find x,y coordinates of these pixel values only.
0 comentarios
Respuesta aceptada
Roy Kadesh
el 18 de En. de 2019
[row,col]=find(BW3==1);
depending on your image orientation, either row is x, or col is x.
1 comentario
Image Analyst
el 3 de Feb. de 2019
No.
If the row is x you're violating a pretty strong convention of having x be the horizontal direction and y be the vertical direction.
What you have is correct:
[row,col]=find(BW3==1);
but you could also do
[y, x] = find(BW3); % Note: y comes first! It's not [x,y].
if you follow the universal convention of x being the horizontal (column) direction, and want to use x,y nomenclature instead of row, column nomenclature.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!