opencvimage-processingcamera-calibrationcalibrationextrinsic-parameters

OpenCV: Rotation Matrix and Translation Vector for a Moving Single Camers


I have a calibrated (intrinsic parameters) camera. Later, I need to use it for taking different photos from an object. They will be used to re-project some points of the images.

A key step is to calculate Rotation matrix and Translation vector, using 2 images of a same object. I am a newbie in image processing and I have no idea how to do that. Any information would be appreciated.

Thanks!


Solution

    1. find feature points in image A
    2. find feature points in image B
    3. find feature correspondence
    4. use cv::findFundamentalMat to find the fundamental matrix.
    5. find the essential matrix by E = K'FK where K is the camera intrinsics parameters matrix
    6. now for the tricky part (that was asked before): as suggested by @Majek, use https://github.com/MasteringOpenCV/code, it will give you a good start.