Table of Contents

Property this

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

this[int, int]

Gets or sets the element at the specified 2-D position.

public TElem this[int row, int col] { get; set; }

Parameters

row int

Row index (dimension 0).

col int

Column index (dimension 1).

Property Value

TElem

this[int, int, int, int]

Extracts a rectangular submatrix.

public Mat<TElem> this[int rowStart, int rowEnd, int colStart, int colEnd] { get; set; }

Parameters

rowStart int

Start row of the extracted submatrix. The upper boundary is not included.

rowEnd int

End row of the extracted submatrix. The upper boundary is not included.

colStart int

Start column of the extracted submatrix. The upper boundary is not included.

colEnd int

End column of the extracted submatrix. The upper boundary is not included.

Property Value

Mat<TElem>

this[Range, Range]

Extracts a rectangular submatrix.

public Mat<TElem> this[Range rowRange, Range colRange] { get; set; }

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().

Property Value

Mat<TElem>

this[Rect]

Extracts a rectangular submatrix.

[SuppressMessage("Microsoft.Design", "CA1043: Use integral or string argument for indexers")]
public Mat<TElem> this[Rect roi] { get; set; }

Parameters

roi Rect

Extracted submatrix specified as a rectangle.

Property Value

Mat<TElem>

this[Range[]]

Extracts a rectangular submatrix.

public Mat<TElem> this[params Range[] ranges] { get; set; }

Parameters

ranges Range[]

Array of selected ranges along each array dimension.

Property Value

Mat<TElem>