how to measure distance between corners?

1 view (last 30 days)
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 Comments
sara
sara on 4 Oct 2014
yeah it can be the difference in vertical coordinates too,i think
Guillaume
Guillaume on 4 Oct 2014
Then, since you have detected the two corners, can't you just subtract their vertical coordinates?

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 4 Oct 2014
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 Comments
Image Analyst
Image Analyst on 19 Oct 2014
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.
sara
sara on 19 Oct 2014
thank you so much for your answer,thanx

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!