How can I get start and finish coordinates of a line?
12 ビュー (過去 30 日間)
古いコメントを表示
HiCan we obtain both start and end point coordinates of the spline which is on the picture I have attached.
0 件のコメント
採用された回答
Image Analyst
2012 年 9 月 6 日
Use bwmorph(). First use the 'Skel' option to get the skeleton of the line, then use the 'endpoints' to get the ends of the curves. You can then use find() if you want to know the (column, row) x,y coordinates of the endpoints.
3 件のコメント
Image Analyst
2012 年 9 月 7 日
"First", "Last"? You didn't mention anything about that originally. If you want endpoints of each line one at a time, then you're either going to have to get binary images of one line at a time (hint: use bwlabel and ismember to get those single-curve images) or you're going to have to ask regionprops for "PixelList' and then use ismember to see which blob those endpoints belong to. Give that a try.
その他の回答 (1 件)
Saili Ghavat
2016 年 4 月 18 日
I have plot a line in Matlab. Can I use this plot to find the end co-ordinates of the line, or do I have to just use an image?
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!