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 Center および File ExchangeImage 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