Esempio n. 1
0
        /// <summary> Perform an element wise OR operation with another mat and return the result</summary>
        /// <param name="mat1">The first mat to apply bitwise OR operation</param>
        /// <param name="mat2">The second mat to apply bitwise OR operation</param>
        /// <returns> The result of the OR operation</returns>
        public static UMat operator |(UMat mat1, UMat mat2)
        {
            UMat m = new UMat();

            CvInvoke.BitwiseOr(mat1, mat2, m);
            return(m);
        }
Esempio n. 2
0
 /// <summary>
 /// Perform an binary OR operation with some scalar
 /// </summary>
 /// <param name="mat1">The mat to OR</param>
 /// <param name="val"> The value to OR</param>
 /// <returns> The result of the OR operation</returns>
 public static UMat operator |(UMat mat1, MCvScalar val)
 {
     using (ScalarArray saVal = new ScalarArray(val))
     {
         UMat m = new UMat();
         CvInvoke.BitwiseOr(mat1, saVal, m);
         return(m);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Inplace Or operation with <paramref name="otherArray"/>
 /// </summary>
 /// <param name="otherArray">The other array to perform OR operation</param>
 public void _Or(CvArray <TDepth> otherArray)
 {
     CvInvoke.BitwiseOr(this, otherArray, this, null);
 }