c++ - Opencv Resize Cancel/Stop -
can cancel/stop resize function? if resizing image 4 seconds , cancel after 2 seconds (timing not matter) because not want resize particular image, there method of doing so?
cvresize(srcimg, dstimg, cv_inter_area); //cancel function
if you're on platform supports posix threads, start new thread perform cvresize operation, use pthread_cancel if need stop before runs completion. there's nothing built standard c++ or opencv you're asking.
Comments
Post a Comment