Table of Contents

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

rowStart int
rowEnd int
colStart int
colEnd int

Returns

Mat

SubMat(Range, Range)

Extracts a rectangular submatrix.

public Mat SubMat(Range rowRange, Range colRange)

Parameters

rowRange Range

Start and end row of the extracted submatrix. The upper boundary is not included. To select all the rows, use Range::all().

colRange Range

Start and end column of the extracted submatrix. The upper boundary is not included. To select all the columns, use Range::all().

Returns

Mat

SubMat(Range, Range)

Extracts a rectangular submatrix.

public Mat SubMat(Range rowRange, Range colRange)

Parameters

rowRange Range

Start and end row of the extracted submatrix. The upper boundary is not included. To select all the rows, use Range::all().

colRange Range

Start and end column of the extracted submatrix. The upper boundary is not included. To select all the columns, use Range::all().

Returns

Mat

SubMat(Rect)

Extracts a rectangular submatrix.

public Mat SubMat(Rect roi)

Parameters

roi Rect

Extracted submatrix specified as a rectangle.

Returns

Mat

SubMat(Range[])

Extracts a rectangular submatrix.

public Mat SubMat(Range[] ranges)

Parameters

ranges Range[]

Array of selected ranges along each array dimension.

Returns

Mat