Ask Your Question
0

how to use page-locked memory, the CudaMem class

asked 2013-01-31 04:50:13 -0600

Ikarus79 gravatar image

Hello guys,

I'm quite new in Cuda programming as well. For me it's still quite unclear how to use the CudaMem class. for example how I can do following using page_locked or even zero_copy memory:

Mat srcCpu3ChImg;
Mat outCpu4ChImg;

GpuMat srcGpu3ChImg;
GpuMat outGpu4ChImg;

// load srcCpu3ChImg

srcGpu3ChImg.upload(srcCpu3ChImg);
cv::gpu::cvtColor(srcGpu3ChImg, outGpu4ChImg, CV_BGR2BGRA);
outGpu4ChImg.download(outCpu4ChImg);

thank you a lot in advance cheers greg

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-06 04:51:14 -0600

Ikarus79 gravatar image

tnx anyhow,

for everyone how has the same difficulties I had: http://projects.developer.nokia.com/opencv/browser/opencv/opencv-2.3.1/modules/gpu/test/test_matop.cpp

cheers greg

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-31 04:50:13 -0600

Seen: 743 times

Last updated: Feb 06 '13