Ask Your Question
0

incidence angle from translation vector [closed]

asked 2017-03-09 15:28:07 -0600

sneiman gravatar image

Using OpenCV 3.2 for a local positioning system utilizing aruco.

Have successfully extracted 3d angles/matrices between camera and identified markers. But I also need to calculate the angle to the camera caused by translation of the marker in x and y. Using typical methods in OpenCV, it is straightforward to get this translation vector.

But I am stuck on how to straightforwardly go from the translation vector to angle of incidence.

I have searched/read widely, but have not found any commentary on this. I am not a 3d expert by any means and it is more than possible I have just overlooked something.

My own instinct at this point is to simply translate 0, 0, 0 in model coords to a camera location, and estimate the angle of incidence geometrically. There are some obvious problems with this, and I suspect it will be less than satisfactory.

So - my question is: Is there a straightforward way of going from the translation vector returned by methods like solvePnP() or estimatePoseSingleMarkers() to the angle of incidence to the camera caused by the translation? This is NOT the angle of pose - these come (reasonably) directly from these functions - but these angles not reflect changes in the angle of incidence due to the translation - the incorporate only the actual rotation of detected object.

Any help greatly appreciated,

Seth

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sneiman
close date 2017-03-11 09:40:06.416601

Comments

may be this post would help you and link given by @Eduardo in this post

LBerger gravatar imageLBerger ( 2017-03-09 15:33:29 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-03-09 18:37:16 -0600

Tetragramm gravatar image

Just checking, you want the unit vector in the direction of a point as if the camera was at (0,0,0)?

If so, take a look HERE. This through line 216 are what you need.

If not, I'm not sure what you're asking.

edit flag offensive delete link more

Comments

This does it. Thanks very much. My error was in mis-understanding sequence of operations.

sneiman gravatar imagesneiman ( 2017-03-11 09:39:36 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-03-09 15:28:07 -0600

Seen: 406 times

Last updated: Mar 09 '17