How can I subtract one image from another using openCV?
Ps.: I coudn\'t use the python implementation because I\'ll have to do it in C++
use cv::subtract() method.
Mat img1=some_img; Mat img2=some_img; Mat dest; cv::subtract(img1,img2,dest);
This performs elementwise subtract of (img1-img2). you can find more details about it http://docs.opencv.org/modules/core/doc/operations_on_arrays.html