refactored Separable Linear Filters
This commit is contained in:
@@ -929,10 +929,12 @@ TEST(GaussianBlur)
|
||||
gpu::GpuMat d_dst(src.size(), src.type());
|
||||
gpu::GpuMat d_buf;
|
||||
|
||||
gpu::GaussianBlur(d_src, d_dst, Size(3, 3), d_buf, 1);
|
||||
cv::Ptr<cv::gpu::Filter> gauss = cv::gpu::createGaussianFilter(d_src.type(), -1, cv::Size(3, 3), 1);
|
||||
|
||||
gauss->apply(d_src, d_dst);
|
||||
|
||||
GPU_ON;
|
||||
gpu::GaussianBlur(d_src, d_dst, Size(3, 3), d_buf, 1);
|
||||
gauss->apply(d_src, d_dst);
|
||||
GPU_OFF;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user