Table of Contents

Method Eye

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Eye(Size, MatType)

Returns an identity matrix of the specified size and type.

public static MatExpr Eye(Size size, MatType type)

Parameters

size Size

Alternative to the matrix size specification Size(cols, rows) .

type MatType

Created matrix type.

Returns

MatExpr

Eye(int, int, MatType)

Returns an identity matrix of the specified size and type.

public static MatExpr Eye(int rows, int cols, MatType type)

Parameters

rows int

Number of rows.

cols int

Number of columns.

type MatType

Created matrix type.

Returns

MatExpr