/// <summary> /// Performs inverse 1D or 2D Discrete Cosine Transformation /// </summary> /// <param name="src">The source floating-point array</param> /// <param name="dst">The destination array; will have the same size and same type as src</param> /// <param name="flags">Transformation flags, a combination of DctFlag2 values</param> public static void Idct(InputArray src, OutputArray dst, DctFlags flags = DctFlags.None) { if (src == null) throw new ArgumentNullException("src"); if (dst == null) throw new ArgumentNullException("dst"); src.ThrowIfDisposed(); dst.ThrowIfNotReady(); NativeMethods.core_idct(src.CvPtr, dst.CvPtr, (int)flags); GC.KeepAlive(src); dst.Fix(); }
/// <summary> /// performs inverse 1D or 2D Discrete Cosine Transformation /// </summary> /// <param name="flags">Transformation flags, a combination of DctFlag2 values</param> /// <returns>The destination array; will have the same size and same type as src</returns> public Mat Idct(DctFlags flags = 0) { var dst = new Mat(); Cv2.Idct(this, dst, flags); return dst; }