Click or drag to resize

SparseMatConvertTo Method (Mat, Int32, Double, Double)

converts sparse matrix to dense n-dim matrix with optional type conversion and scaling.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public void ConvertTo(
	Mat m,
	int rtype,
	double alpha = 1,
	double beta = 0
)

Parameters

m
Type: OpenCvSharpMat
rtype
Type: SystemInt32
The output matrix data type. When it is =-1, the output array will have the same data type as (*this)
alpha (Optional)
Type: SystemDouble
The scale factor
beta (Optional)
Type: SystemDouble
The optional delta added to the scaled values before the conversion
See Also