Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GPU filters don't work in-place. Use different GpuMat objects for input and output parameters:

cv::gpu::GpuMat gpuinput=...;
cv::gpu::GpuMat gpuoutput;
cv::gpu::filter2D(gpuinput,gpuoutput,gpuinput.depth(),ker);