First time here? Check out the FAQ!
answered 2015-08-17 09:33:44 -0600
//convert your uchar images to float matrices: cv::Mat3f i1 = img1; cv::Mat3f i2 = img2; cv::Mat3f t = i1-i2; cv::Mat3f res; cv::sqrt(t.mul(t), res); // now res contains the result