how to measure distance between corners?

조회 수: 4 (최근 30일)
sara
sara 2014년 10월 4일
댓글: sara 2014년 10월 19일
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
sara
sara 2014년 10월 4일
yeah it can be the difference in vertical coordinates too,i think
Guillaume
Guillaume 2014년 10월 4일
Then, since you have detected the two corners, can't you just subtract their vertical coordinates?

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
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
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.
sara
sara 2014년 10월 19일
thank you so much for your answer,thanx

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by