Method ZerosMat
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ZerosMat(int, int, MatType)
Returns a zero array of the specified size and type as Mat.
Unlike Zeros(int, int, MatType), this method returns a Mat directly,
so a single using statement is sufficient to manage its lifetime.
public static Mat ZerosMat(int rows, int cols, MatType type)
Parameters
Returns
ZerosMat(Size, MatType)
Returns a zero array of the specified size and type as Mat.
Unlike Zeros(Size, MatType), this method returns a Mat directly,
so a single using statement is sufficient to manage its lifetime.
public static Mat ZerosMat(Size size, MatType type)
Parameters
sizeSizeAlternative to the matrix size specification Size(cols, rows).
typeMatTypeCreated matrix type.