Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think (because I do not see the code) your problem is because you are resizing the same image, so try a

cv::Mat resized;
cv::resize(initImage, resized, wantedSize, ...);
// do your verifications

Repeat this step for each resize, in fact you can have a function that receives as input parameter the initial image, the wantedSize and applies the verification you need and then it returns true or false, or whatever you want.