Click or drag to resize

MatOnes Method (Size, MatType)

Returns an array of all 1’s of the specified size and type.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static MatExpr Ones(
	Size size,
	MatType type
)

Parameters

size
Type: OpenCvSharpSize
Alternative to the matrix size specification Size(cols, rows) .
type
Type: OpenCvSharpMatType
Created matrix type.

Return Value

Type: MatExpr
See Also