how to measure distance between corners?
4 次查看(过去 30 天)
显示 更早的评论
I have detected some corners in labeled images,how can I measure vertical distance between corners,forexample plot a line at the top corner of each labeled image and measure the vertical difference to each other
4 个评论
Guillaume
2014-10-4
Then, since you have detected the two corners, can't you just subtract their vertical coordinates?
采纳的回答
Image Analyst
2014-10-4
Just measure the bounding box with regionprops. A full demo is given in my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
9 个评论
Image Analyst
2014-10-19
To show top lines, use the line() or plot() function on the original (not cropped) image. To display bounding box, use the rectangle() function on the original image, not the cropped subImage.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!