This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM57X: OpenCV data copy questions

Part Number: PROCESSOR-SDK-AM57X
Other Parts Discussed in Thread: AM5728

Hi,

I'm exploring OpenCV on AM5728 and have a few questions regarding the same.
I'm able to run OpenCV samples on PSDK 3.02 based filesystem on AM5728.
I'm also able to get DSP acceleration of some of the algorithms using the TI libraries by setting "OPENCV_OPENCL_DEVICE" environment variable.
In order to fully make use of DSP acceleration, I tried changing the images to cv::UMat class from cv::Mat wherever possible. But this is resulting in performance degradation.
After some investigation, I found out that copying from cv::UMat to cv::Mat takes large time (~100ms for 640x480 image) but copy from cv::Mat to cv::UMat is fast (~1ms).

So, my questions are as follows -
1. Why is the copy from cv::UMat to cv::Mat slow? And why is the same not true for copy from cv::Mat to cv::UMat?
2. How are cv::Mat images different from cv::UMat images on AM5728?
3. Is there a way to speed-up the copy from cv::UMat to cv::Mat?

Regards,
Manu