undefined reference to 'cv::findTransformECC
article "Image Alignment (ECC) in OpenCV" (www.learnopencv.com/image-alignment-e...) Sample code has #include <opencv2 opencv.hpp=""> and uses findTransformECC().</opencv2>
On my Ubuntu 18.04 and OpenCV 3.4 this code would not compile:
undefined reference to 'cv::findTransformECC(....
I guess some library is missing. What else needs to be included other than opencv.hpp and which libraries I need to add to compillation command? At the moment I have
lopencv_core -l opencv_imgcodecs -l opencv_highgui -lopencv_photo -l opencv_videoio -l opencv_imgproc -l opencv_calib3d