/// <summary> /// Perform an element wise AND operation on the two mats /// </summary> /// <param name="mat1">The first mat to AND</param> /// <param name="mat2">The second mat to AND</param> /// <returns>The result of the AND operation</returns> public static UMat operator &(UMat mat1, UMat mat2) { UMat m = new UMat(); CvInvoke.BitwiseAnd(mat1, mat2, m); return(m); }
/// <summary> /// Perform an element wise AND operation using a mat and a scalar /// </summary> /// <param name="mat1">The first mat to AND</param> /// <param name="val">The value to AND</param> /// <returns>The result of the AND operation</returns> public static UMat operator &(UMat mat1, MCvScalar val) { using (ScalarArray saVal = new ScalarArray(val)) { UMat m = new UMat(); CvInvoke.BitwiseAnd(mat1, saVal, m); return(m); } }
/// <summary> /// Inplace And operation with <paramref name="otherArray"/> /// </summary> /// <param name="otherArray">The other array to perform AND operation</param> public void _And(CvArray <TDepth> otherArray) { CvInvoke.BitwiseAnd(this, otherArray, this, null); }