Opencv resize() function cost graphic memory

asked 2020-05-26 04:32:08 -0500

Hi, I just use cv::resize() function to resize an image. And it turns out that it will occupy GPU graphic memory.

cv::resize(mat, mat, cv::Size(1920,1080)) occupies 147MB.

System Info:

Opencv 3.3.1 without CUDA support. (cv::cuda::setDevice() gives "opencv is compiled without CUDA")

CUDA 10.0

How does this happen and how to solve the problem, besides version update/backup?

edit retag flag offensive close merge delete