GpuMatCreate Method (Size, MatType) OpenCvSharp Class Library
allocates new matrix data unless the matrix already has specified size and type. previous data is unreferenced if needed.

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

public void Create(
	Size size,
	MatType type
)

Parameters

size
Type: OpenCvSharp.CPlusPlusSize
2D array size: Size(cols, rows)
type
Type: OpenCvSharp.CPlusPlusMatType
Array type.
See Also

Reference