MatOnes Method (MatType, Int32) OpenCvSharp Class Library
Returns an array of all 1’s of the specified size and type.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

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

Parameters

type
Type: OpenCvSharp.CPlusPlusMatType
Created matrix type.
sizes
Type: SystemInt32
Array of integers specifying the array shape.

Return Value

Type: MatExpr

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Mat.Ones(OpenCvSharp.CPlusPlus.MatType,System.Int32[])"]

See Also

Reference