Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Well, I have found that ones can modify the default allocator of cv::Mat to be page-locked memory. This can be done in OpenCV by this code line which have to be written before declaring the cv::Mat.

cv::Mat::setDefaultAllocator(cv::cuda::HostMem::getAllocator (cv::cuda::HostMem::AllocType::PAGE_LOCKED));