OpenCvSharp.Cv2.Multiply C# (CSharp) Method

Multiply() public static method

Calculates the per-element scaled product of two arrays
public static Multiply ( InputArray src1, InputArray src2, OutputArray dst, double scale = 1, int dtype = -1 ) : void
src1 InputArray The first source array
src2 InputArray The second source array of the same size and the same type as src1
dst OutputArray The destination array; will have the same size and the same type as src1
scale double The optional scale factor. [By default this is 1]
dtype int
return void
        public static void Multiply(InputArray src1, InputArray src2, OutputArray dst, double scale = 1, int dtype = -1)
        {
            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();
            NativeMethods.core_multiply(src1.CvPtr, src2.CvPtr, dst.CvPtr, scale, dtype);
            GC.KeepAlive(src1);
            GC.KeepAlive(src2);
            dst.Fix();

        }
        #endregion
Cv2