Click or drag to resize

MatSetTo Method (Scalar, Mat)

Sets all or some of the array elements to the specified value.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public Mat SetTo(
	Scalar value,
	Mat mask = null
)

Parameters

value
Type: OpenCvSharpScalar
mask (Optional)
Type: OpenCvSharpMat

Return Value

Type: Mat
See Also