added GPU implementation of morphology functions (using NPP) and tests for it.

added npp_error function
added check_and_treat_gpu_exception function for tests_gpu
This commit is contained in:
Anatoly Baksheev
2010-09-17 15:28:59 +00:00
parent 97f2972fc0
commit 1387bfcde0
9 changed files with 535 additions and 6 deletions

View File

@@ -437,6 +437,16 @@ namespace cv
CV_EXPORTS void cvtColor(const GpuMat& src, GpuMat& dst, int code, int dcn = 0);
CV_EXPORTS void cvtColor(const GpuMat& src, GpuMat& dst, int code, int dcn, const Stream& stream);
//! erodes the image (applies the local minimum operator)
CV_EXPORTS void erode( const GpuMat& src, GpuMat& dst, const Mat& kernel, Point anchor, int iterations);
//! dilates the image (applies the local maximum operator)
CV_EXPORTS void dilate( const GpuMat& src, GpuMat& dst, const Mat& kernel, Point anchor, int iterations);
//! applies an advanced morphological operation to the image
CV_EXPORTS void morphologyEx( const GpuMat& src, GpuMat& dst, int op, const Mat& kernel, Point anchor, int iterations);
//////////////////////////////// StereoBM_GPU ////////////////////////////////
class CV_EXPORTS StereoBM_GPU