OpenCvSharp.Cv2.Dft C# (CSharp) Method

Dft() public static method

Performs a forward Discrete Fourier transform of 1D or 2D floating-point array.
public static Dft ( InputArray src, OutputArray dst, DftFlags flags = DftFlags.None, int nonzeroRows ) : void
src InputArray The source array, real or complex
dst OutputArray The destination array, which size and type depends on the flags
flags DftFlags Transformation flags, a combination of the DftFlag2 values
nonzeroRows int When the parameter != 0, the function assumes that /// only the first nonzeroRows rows of the input array ( DFT_INVERSE is not set) /// or only the first nonzeroRows of the output array ( DFT_INVERSE is set) contain non-zeros, /// thus the function can handle the rest of the rows more efficiently and /// thus save some time. This technique is very useful for computing array cross-correlation /// or convolution using DFT
return void
        public static void Dft(InputArray src, OutputArray dst, DftFlags flags = DftFlags.None, int nonzeroRows = 0)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            NativeMethods.core_dft(src.CvPtr, dst.CvPtr, (int)flags, nonzeroRows);
            GC.KeepAlive(src); 
            dst.Fix();
        }
Cv2