Ask Your Question

Revision history [back]

can't use findhomography

Hello, I'm have code use findhomography function. It can compile but when i run it have error my code:

and my error image description

Please help me. Sorry because my English not good The best is give me a video to use it, thanks.

include "opencv2/calib3d/calib3d.hpp"

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

include "opencv2/features2d/features2d.hpp"

include <iostream>

using namespace std; using namespace cv;

int main() { Mat I1,I2,I3; I1=imread("D:\detect\box.png"); I2=imread("D:\detect\box_in_scene.png"); I3=findHomography(I1,I2,CV_RANSAC,2); system("PAUSE"); return 1; }

click to hide/show revision 2
No.2 Revision

can't use findhomography

Hello, I'm have code use findhomography function. It can compile but when i run it have error my code:

and my error image description

Please help me. Sorry because my English not good The best is give me a video to use it, thanks.

include "opencv2/calib3d/calib3d.hpp"

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

include "opencv2/features2d/features2d.hpp"

include <iostream>

#include "opencv2/calib3d/calib3d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/features2d/features2d.hpp" #include <iostream> using namespace std; using namespace cv;

cv;

int main() { Mat I1,I2,I3; I1=imread("D:\detect\box.png"); I2=imread("D:\detect\box_in_scene.png"); I3=findHomography(I1,I2,CV_RANSAC,2); system("PAUSE"); return 1; }