Table of Contents

Method Zeros

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Zeros(int, int, MatType)

Returns a zero array of the specified size and type.

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

Parameters

rows int

Number of rows.

cols int

Number of columns.

type MatType

Created matrix type.

Returns

MatExpr

Zeros(Size, MatType)

Returns a zero array of the specified size and type.

public static MatExpr Zeros(Size size, MatType type)

Parameters

size Size

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

type MatType

Created matrix type.

Returns

MatExpr

Zeros(MatType, params int[])

Returns a zero array of the specified size and type.

public static MatExpr Zeros(MatType type, params int[] sizes)

Parameters

type MatType

Created matrix type.

sizes int[]

Returns

MatExpr

Zeros(MatShape, MatType)

Returns a zero array of the specified shape and type (OpenCV 5, MatShape).

public static MatExpr Zeros(MatShape shape, MatType type)

Parameters

shape MatShape

Created matrix shape.

type MatType

Created matrix type.

Returns

MatExpr