Alex Rivera | Logout

How to convert GpuMat to CvMat in OpenCV?

Asked 2011-08-06T07:38:37.333
10

I know how to do the opposite i.e. get GpuMat from CvMat using upload, but I need a CvMat from GpuMat, is there any method that can be used for this?

Edit
Report

1 Answer

4

In win 7 , 64 bit, openCV 2.4

GpuMat --> Mat:

cv::gpu::GpuMat dst;
cv::Mat tran(dst);

As you can see dst is GpuMat, and tran is Mat.

answered 2012-08-20T11:26:00.387

Your Answer