Calculate offset/skew/rotation of similar images in C++

前端 未结 3 1973
不思量自难忘°
不思量自难忘° 2020-12-29 14:33

I have multiple images taken simultaneously pointing at the same direction from the same starting location. However, there is still a slight offset because these cameras wer

3条回答
  •  别那么骄傲
    2020-12-29 15:12

    Avoid linker errors using the below code:

    #include "cv.h"
    #include "highgui.h"
    using namespace cv;
    
    // Directives to linker to include openCV lib files.
    #pragma comment(lib, "opencv_core220.lib") 
    #pragma comment(lib, "opencv_highgui220.lib") 
    #pragma comment(lib, "opencv_contrib220.lib") 
    #pragma comment(lib, "opencv_imgproc220.lib") 
    #pragma comment(lib, "opencv_gpu220.lib") 
    #pragma comment(lib, "opencv_video220.lib") 
    #pragma comment(lib, "opencv_legacy220.lib") 
    
    #pragma comment(lib, "opencv_ml220.lib") 
    #pragma comment(lib, "opencv_objdetect220.lib") 
    #pragma comment(lib, "opencv_ffmpeg220.lib") 
    
    #pragma comment(lib, "opencv_flann220.lib") 
    #pragma comment(lib, "opencv_features2d220.lib") 
    #pragma comment(lib, "opencv_calib3d220.lib") 
    
    // Your code here...
    int main(void){
        Mat B = Mat:eye(3,3,CV_8U);
        return -1;
    }
    

提交回复
热议问题