- Image segmentation to find the object. The method depends on your image (object ,background,etc ), simplest one, might be im2bw().
- regionprops(..., 'Centroid') to get the center Position for the Obj.
- normalized xPosition corresponds to your angle. Eg Object is at 20% of the image xaxis than your angle is 0.2*55° = 11°.
How can I calculate the angle between two points and camera?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hey,
I'm beginner in Matlab and I have to do a project that calculates the angle between 2 points. I'll try to describe it: I have a table that in one corner I have a camera. In the same horizontal line I put one object (or a reference point), let's say it is 0 degrees. Now, I put another object somewhere in the middle of the table and I want that Matlab ill calculate the the angle between them like is it 2D. Also if I can and the object is in the view sight of the camera I want that it will calculate the 2 angles. The natural angle of the camera is 55 degrees.
10X, Itay
댓글 수: 0
채택된 답변
ChristianW
2013년 3월 2일
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!