示例#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;
 }
示例#3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="parent"></param>
 protected internal RowIndexer(MatExpr parent)
     : base(parent)
 {
 }
示例#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;
 }
示例#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;
 }
示例#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));
 }
 /// <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;
 }
示例#11
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 protected internal MatExprRowColIndexer(MatExpr parent)
 {
     Parent = parent;
 }
示例#12
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 protected internal RowIndexer(MatExpr parent)
     : base(parent)
 {
 }
示例#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;
 }
示例#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;
 }
 /// <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;
 }
示例#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;
 }
示例#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);
     }
 }
示例#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);
 }
示例#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;
 }