OpenCvSharp.Cv2.Solve C# (CSharp) Method

Solve() public static method

solves linear system or a least-square problem
public static Solve ( InputArray src1, InputArray src2, OutputArray dst, DecompTypes flags = DecompTypes.LU ) : bool
src1 InputArray
src2 InputArray
dst OutputArray
flags DecompTypes
return bool
        public static bool Solve(InputArray src1, InputArray src2, OutputArray dst,
            DecompTypes flags = DecompTypes.LU)
        {
            if (src1 == null)
                throw new ArgumentNullException(nameof(src1));
            if (src2 == null)
                throw new ArgumentNullException(nameof(src2));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src1.ThrowIfDisposed();
            src2.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            int ret = NativeMethods.core_solve(src1.CvPtr, src2.CvPtr, dst.CvPtr, (int)flags);
            GC.KeepAlive(src1);
            GC.KeepAlive(src2); 
            dst.Fix();
            return ret != 0;
        }
        #endregion
Cv2