refactoring and minor code improvements

added cuda_shared.hpp header was reorganized in order to speed up compilation
This commit is contained in:
Anatoly Baksheev
2010-07-26 15:04:56 +00:00
parent c13df09f08
commit 22f5376e82
10 changed files with 281 additions and 224 deletions

View File

@@ -65,6 +65,7 @@ namespace cv
//////////////////////////////// GpuMat ////////////////////////////////
class CudaStream;
class MatPL;
//! Smart pointer for GPU memory with reference counting. Its interface is mostly similar with cv::Mat.
class CV_EXPORTS GpuMat
@@ -107,12 +108,12 @@ namespace cv
//! pefroms blocking upload data to GpuMat. .
void upload(const cv::Mat& m);
void upload(const cv::Mat& m, CudaStream & stream);
void upload(const MatPL& 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;
void download(MatPL& m, CudaStream& stream) const;
//! returns a new GpuMatrix header for the specified row
GpuMat row(int y) const;