How to update UMat when Mat is updated?
I am writing one application in which i'll be having 2 Mat objects whose data will be updating every 50ms. Is there any way to create UMat for Mat objects, So that once Mat data updates, UMat data should also be updated.
Thankyou
show some example code, please.
in general, cv::Mat has cpu memory, and cv::UMat gpu (opencl) memory, getting things from one place to another involves copying, so what you want might not be possible
Thanks for your Response. If possible can you look at this question link text