Ask Your Question

Revision history [back]

What do you count as "the same"? Pixelwise equality? In this case cv::sum(cv::absdiff(img_a,img_b)) == 0 is the test you want to run. (Or something faster that fails faster if the images are not the same)

What do you count as "the same"? Pixelwise equality? In this case cv::sum(cv::absdiff(img_a,img_b)) cv::sum(cv::absdiff(current_image,reference_image)) == 0 0 is the test you want to run. (Or something faster that fails faster if the images are not the same)