/// <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(DctFlag2 flags = DctFlag2.None) { var dst = new Mat(); Cv2.Idct(this, dst, flags); return dst; }
/// <summary> /// performs inverse 1D or 2D Discrete Cosine Transformation /// </summary> /// <param name="src"></param> /// <param name="dst"></param> /// <param name="flags"></param> public static void Idct(InputArray src, OutputArray dst, DctFlag2 flags = DctFlag2.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); dst.Fix(); }