Method Ones
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Ones(int, int, MatType)
Returns an array of all 1’s of the specified size and type.
public static UMat Ones(int rows, int cols, MatType type)
Parameters
Returns
Ones(Size, MatType)
Returns an array of all 1’s of the specified size and type.
public static UMat Ones(Size size, MatType type)
Parameters
sizeSizeAlternative to the matrix size specification Size(cols, rows) .
typeMatTypeCreated matrix type.
Returns
Ones(MatType, params int[])
Returns an array of all 1’s of the specified size and type.
public static UMat Ones(MatType type, params int[] sizes)