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 MatExpr 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 MatExpr 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 MatExpr Ones(MatType type, params int[] sizes)
Parameters
Returns
Ones(MatShape, MatType)
Returns an array of all 1's of the specified shape and type (OpenCV 5, MatShape).
public static MatExpr Ones(MatShape shape, MatType type)