OpenCvSharp.Cv2.Invert C# (CSharp) Method

Invert() public static method

computes inverse or pseudo-inverse matrix
public static Invert ( InputArray src, OutputArray dst, DecompTypes flags = DecompTypes.LU ) : double
src InputArray The source floating-point MxN matrix
dst OutputArray The destination matrix; will have NxM size and the same type as src
flags DecompTypes The inversion method
return double
        public static double Invert(InputArray src, OutputArray dst,
            DecompTypes flags = DecompTypes.LU)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            double ret = NativeMethods.core_invert(src.CvPtr, dst.CvPtr, (int)flags);
            GC.KeepAlive(src);
            dst.Fix();
            return ret;
        }
        #endregion
Cv2