find the coordinates of an image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
RAMESH MUNIRATHINAM
am 20 Dez. 2014
Bearbeitet: Mohammed Qusay
am 7 Mär. 2017
how to get the xy coordinates of palm from the image
3 Kommentare
Mohammed Qusay
am 7 Mär. 2017
Bearbeitet: Mohammed Qusay
am 7 Mär. 2017
@John ... i want to the The bottom-left-most pixel of the palm, The bottom-right-most pixel of the palm,The top-left-most and the top-right-most of the binary image how to get it ?
Akzeptierte Antwort
Geoff Hayes
am 20 Dez. 2014
Ramesh - if the right-hand image is a binary image of 0's and 1's, then can't you get the rows and columns (y and x coordinates respectively) using the following
[rows,cols] = find(binaryImg==1);
where binaryImg is your binary image and 1 corresponds to the white pixels?
5 Kommentare
Image Analyst
am 20 Dez. 2014
If, by chance, you want just the outline of the palm, you can use
boundaries = bwboundaries(binaryImage);
Or (not as efficiently)
[rows, columns] = find(bwperim(binaryImage));
Geoff's code can skip the unnecessary step of comparing every pixel in the entire image to 1 by simply just doing:
[rows,cols] = find(binaryImg);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!