How to Measure the Distance Between the Red crosses?
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to do shape identification using the harris corner detection method. I want to detect 2 corners of a shape and use the distance between those corners to identify the shape (square, triangle, circle, or star). How do I measure the distance between the red crosses in the picture below? How would I then classify that distance as a triangle?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/406410/image.png)
0 件のコメント
回答 (1 件)
Abhisek Pradhan
2020 年 11 月 10 日
imdistline can be used to find the distance between two points in an image by interactively setting the positions. For detecting whether the image is a triangle or not I would suggest referring the example in below-mentioned links. Or we may need to get the length of all three sides to conclude it to be a triangle.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Feature Detection and Extraction についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!