opencvconvolution

OpenCV convolution/filter2d with complex kernel


Is there a function in OpenCV which takes a complex matrix as a kernel to convolve/filter an image?


Solution

  • This function filter2D() meets your requirement. Pay attention to the int ddepth paratmer, when you apply floating-point kernels on uchar image.