필터 지우기
필터 지우기

How can I detect different oriented object using point features?

조회 수: 2 (최근 30일)
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016년 1월 16일
댓글: ahmed shahin 2020년 3월 25일
I have the following image with point features?
How can I display/detect object using different oriented rectangle according to the image orientation? As for example......
<<
>>
  댓글 수: 1
ahmed shahin
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
Image Analyst 2016년 1월 16일
You might try Hu's image moments: http://www.youtube.com/watch?v=Nc06tlZAv_Q
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
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016년 1월 17일
>>>Dear Image analyst, My main questions is about rectangle. How can I draw the rectangle according to the object orientation? >>> I see the video.But the orientation of the rectangle is same. please see the image below:
Image Analyst
Image Analyst 2016년 1월 17일
To draw tilted rectangles, I think you need to use plot() rather than rectangle().

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


SACHIN PATEL
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
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
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!

Translated by