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