MatTElem, TInherit Constructor (Size, MatType, Scalar) OpenCvSharp Class Library
constucts 2D matrix and fills it with the specified Scalar value.

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

protected Mat(
	Size size,
	MatType type,
	Scalar s
)

Parameters

size
Type: OpenCvSharp.CPlusPlusSize
2D array size: Size(cols, rows) . In the Size() constructor, the number of rows and the number of columns go in the reverse order.
type
Type: OpenCvSharp.CPlusPlusMatType
Array type. Use MatType.CV_8UC1, ..., CV_64FC4 to create 1-4 channel matrices, or CV_8UC(n), ..., CV_64FC(n) to create multi-channel (up to CV_CN_MAX channels) matrices.
s
Type: OpenCvSharp.CPlusPlusScalar
An optional value to initialize each matrix element with. To set all the matrix elements to the particular value after the construction, use SetTo(Scalar s) method .
See Also

Reference