Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
//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