| MatTElem Constructor (Size, Scalar) |
constructs 2D matrix and fills it with the specified Scalar value.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat(
Size size,
Scalar s
)
Public Sub New (
size As Size,
s As Scalar
)
public:
Mat(
Size size,
Scalar s
)
new :
size : Size *
s : Scalar -> Mat
Parameters
- size
- Type: OpenCvSharpSize
2D array size: Size(cols, rows) . In the Size() constructor,
the number of rows and the number of columns go in the reverse order. - s
- Type: OpenCvSharpScalar
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