implemented asynchronous call for GpuMat::upload() and GpuMat::download(). added test for asynchronous call.

This commit is contained in:
Andrey Morozov
2010-07-26 13:42:39 +00:00
parent bb2fe87b32
commit fff2160d1f
4 changed files with 153 additions and 4 deletions

View File

@@ -107,10 +107,12 @@ namespace cv
//! pefroms blocking upload data to GpuMat. .
void upload(const cv::Mat& m);
void upload(const cv::Mat& m, CudaStream & stream);
//! Downloads data from device to host memory. Blocking calls.
operator Mat() const;
void download(cv::Mat& m) const;
void download(cv::Mat& m, CudaStream & stream) const;
//! returns a new GpuMatrix header for the specified row
GpuMat row(int y) const;