find the coordinates of an image

1 次查看(过去 30 天)
how to get the xy coordinates of palm from the image
  3 个评论
RAMESH MUNIRATHINAM
RAMESH MUNIRATHINAM 2014-12-20
thank you, consider only the right image, i want to get the x-y coordinates of entire structure of palm alone, i know that if we have the coordinates we can get the image, but i have image and i want to know the coordinates is it possible?
Mohammed Qusay
Mohammed Qusay 2017-3-7
编辑:Mohammed Qusay 2017-3-7
@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 ?

请先登录,再进行评论。

采纳的回答

Geoff Hayes
Geoff Hayes 2014-12-20
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 个评论
Image Analyst
Image Analyst 2014-12-20
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);
RAMESH MUNIRATHINAM
RAMESH MUNIRATHINAM 2014-12-20
@image analyst
thank you will inform you after trying it

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by