GpuMat Constructor (Size, MatType, Scalar)
|
constucts 2D matrix and fills it with the specified Scalar value.
Namespace:
OpenCvSharp.Cuda
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic GpuMat(
Size size,
MatType type,
Scalar s
)
Public Sub New (
size As Size,
type As MatType,
s As Scalar
)
public:
GpuMat(
Size size,
MatType type,
Scalar s
)
new :
size : Size *
type : MatType *
s : Scalar -> GpuMat
OpenCvSharp.Cuda.GpuMat = function(size, type, s);
Parameters
- size
- Type: OpenCvSharpSize
2D array size: Size(cols, rows) . - type
- Type: OpenCvSharpMatType
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: 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