Esempio n. 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public MatExpr T()
 {
     ThrowIfDisposed();
     try
     {
         IntPtr retPtr = NativeMethods.core_MatExpr_t(ptr);
         MatExpr retVal = new MatExpr(retPtr);
         return retVal;
     }
     catch (BadImageFormatException ex)
     {
         throw PInvokeHelper.CreateException(ex);
     }
 }
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column.
 /// </summary>
 /// <param name="rowStart"></param>
 /// <param name="rowEnd"></param>
 /// <param name="colEnd"></param>
 /// <param name="colStart"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(int rowStart, int rowEnd, int colStart, int colEnd, MatExpr value)
 {
     this[rowStart, rowEnd, colStart, colEnd] = value;
 }
Esempio n. 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 protected internal RowIndexer(MatExpr parent)
     : base(parent)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="rowStart"></param>
 /// <param name="rowEnd"></param>
 /// <param name="colStart"></param>
 /// <param name="colEnd"></param>
 /// <returns></returns>
 public MatExpr SubMat(int rowStart, int rowEnd, int colStart, int colEnd)
 {
     ThrowIfDisposed();
     try
     {
         IntPtr retPtr = NativeMethods.core_MatExpr_submat(ptr, rowStart, rowEnd, colStart, colEnd);
         MatExpr retVal = new MatExpr(retPtr);
         return retVal;
     }
     catch (BadImageFormatException ex)
     {
         throw PInvokeHelper.CreateException(ex);
     }
 }
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column span.
 /// </summary>
 /// <param name="range"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(Range range, MatExpr value)
 {
     this[range] = value;
 }
Esempio n. 6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="m"></param>
 /// <param name="scale"></param>
 /// <returns></returns>
 public MatExpr Mul(Mat m, double scale = 1.0)
 {
     ThrowIfDisposed();
     m.ThrowIfDisposed();
     try
     {
         IntPtr retPtr = NativeMethods.core_MatExpr_mul_toMat(ptr, m.CvPtr, scale);
         MatExpr retVal = new MatExpr(retPtr);
         return retVal;
     }
     catch (BadImageFormatException ex)
     {
         throw PInvokeHelper.CreateException(ex);
     }
 }
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column.
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(int pos, MatExpr value)
 {
     this[pos] = value;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 protected internal MatExprRowColIndexer(MatExpr parent)
 {
     this.parent = parent;
 }
Esempio n. 9
0
 /// <summary>
 /// Creates a proxy class of the specified MatExpr
 /// </summary>
 /// <param name="expr"></param>
 /// <returns></returns>
 public static InputArray Create(MatExpr expr)
 {
     return(new InputArray(expr));
 }
Esempio n. 10
0
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column span.
 /// </summary>
 /// <param name="range"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(Range range, MatExpr value)
 {
     this[range] = value;
 }
Esempio n. 11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 protected internal MatExprRowColIndexer(MatExpr parent)
 {
     Parent = parent;
 }
Esempio n. 12
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 protected internal RowIndexer(MatExpr parent)
     : base(parent)
 {
 }
Esempio n. 13
0
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column.
 /// </summary>
 /// <param name="pos"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(int pos, MatExpr value)
 {
     this[pos] = value;
 }
Esempio n. 14
0
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column span.
 /// </summary>
 /// <param name="rowRange"></param>
 /// <param name="colRange"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(Range rowRange, Range colRange, MatExpr value)
 {
     this[rowRange, colRange] = value;
 }
Esempio n. 15
0
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column span.
 /// </summary>
 /// <param name="start"></param>
 /// <param name="end"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(int start, int end, MatExpr value)
 {
     this[start, end] = value;
 }
Esempio n. 16
0
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column span.
 /// </summary>
 /// <param name="roi"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(Rect roi, MatExpr value)
 {
     this[roi] = value;
 }
Esempio n. 17
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="method"></param>
 /// <returns></returns>
 public MatExpr Inv(DecompTypes method = DecompTypes.LU)
 {
     ThrowIfDisposed();
     try
     {
         IntPtr retPtr = NativeMethods.core_MatExpr_inv(ptr, (int)method);
         MatExpr retVal = new MatExpr(retPtr);
         return retVal;
     }
     catch (BadImageFormatException ex)
     {
         throw PInvokeHelper.CreateException(ex);
     }
 }
Esempio n. 18
0
 /// <summary>
 /// Computes absolute value of each matrix element
 /// </summary>
 /// <param name="src">matrix expression</param>
 /// <returns></returns>
 public static MatExpr Abs(MatExpr src)
 {
     if (src == null)
         throw new ArgumentNullException("src");
     src.ThrowIfDisposed();
     IntPtr retPtr = NativeMethods.core_abs_MatExpr(src.CvPtr);
     GC.KeepAlive(src);
     return new MatExpr(retPtr);
 }
Esempio n. 19
0
 /// <summary>
 /// Sets a matrix header for the specified matrix row/column span.
 /// </summary>
 /// <param name="start"></param>
 /// <param name="end"></param>
 /// <param name="value"></param>
 /// <returns></returns>
 public void Set(int start, int end, MatExpr value)
 {
     this[start, end] = value;
 }