| MatTElem Constructor (IEnumerableInt32, Scalar) |
constructs n-dimensional matrix
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat(
IEnumerable<int> sizes,
Scalar s
)
Public Sub New (
sizes As IEnumerable(Of Integer),
s As Scalar
)
public:
Mat(
IEnumerable<int>^ sizes,
Scalar s
)
new :
sizes : IEnumerable<int> *
s : Scalar -> Mat
Parameters
- sizes
- Type: System.Collections.GenericIEnumerableInt32
Array of integers specifying an n-dimensional array shape. - 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