Reputation: 145
How can I calculate the 3D pose when the object is moving in the scene, I use SURF to track an object in the scene and the initial 3D pose of this object is known. All I know is once I use SURF the 2D correspondence between two consecutive frames is know, so the 3D pose should not be difficult to calculate by multiplying the original 3D poses with some transform matrix.
Upvotes: 1
Views: 958
Reputation: 370
When you know the 3D location of your feature points in some fixed co-ordinate system, then upon moving your camera all you really have to do is to estimate the pose of the camera and apply the reverse transformation to know the current pose of the object in current reference frame. Such problems are known as Pn-P problems. There is a huge body of work around this, but one of the recent papers on this topic that promises an efficient algorithm to estimate pose is http://cvlabwww.epfl.ch/~lepetit/papers/lepetit_ijcv08.pdf
You can also use cv::solvePnP
Upvotes: 1
Reputation: 39399
What you are trying to do is called structure from motion. Check the link for relevant papers and software.
Upvotes: 0