Method SubMat
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SubMat(int, int, int, int)
Extracts a rectangular submatrix.
public Mat SubMat(int rowStart, int rowEnd, int colStart, int colEnd)
Parameters
Returns
SubMat(Range, Range)
Extracts a rectangular submatrix.
public Mat SubMat(Range rowRange, Range colRange)
Parameters
rowRangeRangeStart and end row of the extracted submatrix. The upper boundary is not included. To select all the rows, use Range::all().
colRangeRangeStart and end column of the extracted submatrix. The upper boundary is not included. To select all the columns, use Range::all().
Returns
SubMat(Range, Range)
Extracts a rectangular submatrix.
public Mat SubMat(Range rowRange, Range colRange)
Parameters
rowRangeRangeStart and end row of the extracted submatrix. The upper boundary is not included. To select all the rows, use Range::all().
colRangeRangeStart and end column of the extracted submatrix. The upper boundary is not included. To select all the columns, use Range::all().
Returns
SubMat(Rect)
Extracts a rectangular submatrix.
public Mat SubMat(Rect roi)
Parameters
roiRectExtracted submatrix specified as a rectangle.
Returns
SubMat(Range[])
Extracts a rectangular submatrix.
public Mat SubMat(Range[] ranges)
Parameters
rangesRange[]Array of selected ranges along each array dimension.