Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Missing cv::MOTION_HOMOGRAPHY and findTransformECC()

I am new to opencv and I guess I am doing something silly. But so far I really could not figure out what I am doing wrong.

I have used SIFT/SURF and ORB feature detection and matching in opencv 2.4, and I wanted to give the Enhanced Correlation Coefficient (ECC) Maximization algorithm a shot.

As an illustration, I took Satya Mallick's example from http://www.learnopencv.com/image-alignment-ecc-in-opencv-c-python.

Basically, even though other people seem to be able to use the findTransformECC() function and set (among others) the cv::MOTION_HOMOGRAPHY enum, I don't seem to have them defined anywhere.

I tried openCV 3.0 in Windows + VS 2013/2015 Community (downloaded the official release and added include and lib folders to the project) and Ubuntu + python 2.7 (checked out and built opencv + opencv_contrib from source) and I also tried the same code with opencv 2.4 both in Windows and in Ubuntu.

Any idea what I might be doing wrong?

Thanks a lot for any help, a2