Table of Contents

Method At

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

At<T>(int)

Returns a reference to the specified array element. For 2D matrices, i0 is the row index (dimension 0). Do NOT call this with a column index on a row-submatrix obtained from Row(int); use At<T>(int, int) or RowSpan<T>(int) instead. For performance-sensitive pixel loops, prefer AsRows<T>().

public ref T At<T>(int i0) where T : unmanaged

Parameters

i0 int

Index along the dimension 0

Returns

T

A reference to the specified array element.

Type Parameters

T

At<T>(int, int)

Returns a value to the specified array element.

public ref T At<T>(int i0, int i1) where T : unmanaged

Parameters

i0 int

Index along the dimension 0

i1 int

Index along the dimension 1

Returns

T

A value to the specified array element.

Type Parameters

T

At<T>(int, int, int)

Returns a value to the specified array element.

public ref T At<T>(int i0, int i1, int i2) where T : unmanaged

Parameters

i0 int

Index along the dimension 0

i1 int

Index along the dimension 1

i2 int

Index along the dimension 2

Returns

T

A value to the specified array element.

Type Parameters

T

At<T>(params int[])

Returns a value to the specified array element.

public ref T At<T>(params int[] idx) where T : unmanaged

Parameters

idx int[]

Array of Mat::dims indices.

Returns

T

A value to the specified array element.

Type Parameters

T