How can I detect different oriented object using point features?
2 ビュー (過去 30 日間)
古いコメントを表示
I have the following image with point features?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153339/image.jpeg)
How can I display/detect object using different oriented rectangle according to the image orientation? As for example......
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153340/image.jpeg)
>>
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153341/image.jpeg)
1 件のコメント
ahmed shahin
2020 年 3 月 25 日
did you solve this issue, i trie to make the bounding box orienattion with the same detetcted
回答 (2 件)
Image Analyst
2016 年 1 月 16 日
But it looks like you're already using capabilities of the Computer Vision System Toolbox. Do you already have the coordinates of the green rectangles and you just need to straighten them, then extract and show the aligned image?
6 件のコメント
Image Analyst
2016 年 1 月 17 日
To draw tilted rectangles, I think you need to use plot() rather than rectangle().
SACHIN PATEL
2018 年 12 月 26 日
I also want to know how to rotate the surrounding bounding box with the same angle as the object orientation, if the bounding box is used with regionprops function in MATLAB....?
5 件のコメント
SACHIN PATEL
2018 年 12 月 26 日
Hello Sir, Thank you for your support. But I have not try the Hu's moments yet, I have to first understand it properly. Then, I will implement it.
I have not any specific image taken by camera. I just working on Image having different standard shapes (like square, Hexagon, rectangle with any orientation).
Thank you.
Image Analyst
2018 年 12 月 26 日
If you want to determine what shape it is, then you can just find the centroid, find the boundaries, find the distances from the centroid to the boundary points, and then look for peaks in the distance array. I'm attaching a demo.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!