fixed gpu morphology: anchor and iterations
This commit is contained in:
@@ -47,9 +47,9 @@ const char* blacklist[] =
|
||||
{
|
||||
"GPU-NppImageSum", // crash
|
||||
"GPU-MatOperatorAsyncCall", // crash
|
||||
"GPU-NppErode", // npp func returns error code (CUDA_KERNEL_LAUNCH_ERROR or TEXTURE_BIND_ERROR)
|
||||
"GPU-NppDilate", // npp func returns error code (CUDA_KERNEL_LAUNCH_ERROR or TEXTURE_BIND_ERROR)
|
||||
"GPU-NppMorphologyEx", // npp func returns error code (CUDA_KERNEL_LAUNCH_ERROR or TEXTURE_BIND_ERROR)
|
||||
//"GPU-NppErode", // npp func returns error code (CUDA_KERNEL_LAUNCH_ERROR or TEXTURE_BIND_ERROR)
|
||||
//"GPU-NppDilate", // npp func returns error code (CUDA_KERNEL_LAUNCH_ERROR or TEXTURE_BIND_ERROR)
|
||||
//"GPU-NppMorphologyEx", // npp func returns error code (CUDA_KERNEL_LAUNCH_ERROR or TEXTURE_BIND_ERROR)
|
||||
//"GPU-NppImageDivide", // different round mode
|
||||
//"GPU-NppImageMeanStdDev", // different precision
|
||||
//"GPU-NppImageMinNax", // npp bug
|
||||
|
||||
@@ -134,7 +134,7 @@ protected:
|
||||
virtual int test(const Mat& img)
|
||||
{
|
||||
GpuMat kernel(Mat::ones(3, 3, CV_8U));
|
||||
Point anchor(1,1);
|
||||
Point anchor(-1, -1);
|
||||
int iters = 3;
|
||||
|
||||
cv::Mat cpuRes;
|
||||
@@ -158,7 +158,7 @@ protected:
|
||||
virtual int test(const Mat& img)
|
||||
{
|
||||
GpuMat kernel(Mat::ones(3, 3, CV_8U));
|
||||
Point anchor(1,1);
|
||||
Point anchor(-1, -1);
|
||||
int iters = 3;
|
||||
|
||||
cv::Mat cpuRes;
|
||||
@@ -186,7 +186,7 @@ protected:
|
||||
int num = sizeof(ops)/sizeof(ops[0]);
|
||||
|
||||
GpuMat kernel(Mat::ones(3, 3, CV_8U));
|
||||
Point anchor(1,1);
|
||||
Point anchor(-1, -1);
|
||||
int iters = 3;
|
||||
|
||||
for(int i = 0; i < num; ++i)
|
||||
|
||||
Reference in New Issue
Block a user