Ask Your Question

Revision history [back]

Open CV 3.0 findHomography raise an error

Hi there,

I'm trying to use this sample: http://docs.opencv.org/trunk/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.html

But it always raise an error:

OpenCV Error: Image step is wrong (Step must be a multiple of esz1) in setSize, file /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp, line 297

terminate called after throwing an instance of 'cv::Exception'

what(): /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp:297: error: (-13) Step must be a multiple of esz1 in function setSize

I already ask for it on stackoverflow (http://stackoverflow.com/questions/28001899/open-cv-3-0-findhomography-raise-an-error) but it seems no one has idea about it, and I really get stuck :/

Thanks a lot for you help,

Open CV 3.0 findHomography raise an error

Hi there,

I'm trying to use this sample: http://docs.opencv.org/trunk/doc/py_tutorials/py_feature2d/py_feature_homography/py_feature_homography.html

But it always raise an error:

OpenCV Error: Image step is wrong (Step must be a multiple of esz1) in setSize, file /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp, line 297

terminate called after throwing an instance of 'cv::Exception'

what(): /home/jbd/src/opencv-3.0.0-beta/modules/core/src/matrix.cpp:297: error: (-13) Step must be a multiple of esz1 in function setSize

I already ask for it on stackoverflow (http://stackoverflow.com/questions/28001899/open-cv-3-0-findhomography-raise-an-error) but it seems no one has idea about it, and I really get stuck :/

Thanks a lot for you help,

------ EDIT ---------

In fact, it seems to not be due to findHomography but to:

cv2.perspectiveTransform

I have no clue why