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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -