Given a image (maybe name it im1) with unknown camera poses, and another image which has a very similar view with im1 but with known camera poses, how can we get the camera pose of im1?
More specifically, I mean we have a pair of stereo images im1 and im2, but I only know the poses of one camera, how can I get the pose of another camera?
Oh, and actually I have the static videos taken by this pair of stereo camera, but the content of the video is not static (with drastically pulling)
learning based or non-learning based solution would be great!
I used Colmap but the processing failed, I think this is due to the drastic motion of video contents.
[Answer uses OpenCv terms throughout]
You can match well-distributed discrete points, then use solvePnP to recover the unknown pose. For example run goodFeaturesToTrack on one image, then search for matches in the other image using opticalFlowPyrLK, and filter out outlier matches using findEssentialMat specifying a robust estimator. Finally, apply solvePnP to the matches.