How to update UMat when Mat is updated?

asked 2020-09-25 05:34:38 -0500

Supreeth Kumar Y P gravatar image

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

edit retag flag offensive close merge delete

Comments

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

berak gravatar imageberak ( 2020-09-25 07:06:50 -0500 )edit

Thanks for your Response. If possible can you look at this question link text

Supreeth Kumar Y P gravatar imageSupreeth Kumar Y P ( 2020-09-25 07:47:12 -0500 )edit