Converts an array to another data type with optional scaling.
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic void ConvertTo(
	Mat m,
	MatType rtype,
	double alpha = 1,
	double beta = 0
)
Public Sub ConvertTo ( 
	m As Mat,
	rtype As MatType,
	Optional alpha As Double = 1,
	Optional beta As Double = 0
)
public:
void ConvertTo(
	Mat^ m, 
	MatType rtype, 
	double alpha = 1, 
	double beta = 0
)
member ConvertTo : 
        m : Mat * 
        rtype : MatType * 
        ?alpha : float * 
        ?beta : float 
(* Defaults:
        let _alpha = defaultArg alpha 1
        let _beta = defaultArg beta 0
*)
-> unit 
function ConvertTo(m, rtype, alpha, beta);
Parameters
- m
 - Type: OpenCvSharpMat
output matrix; if it does not have a proper size or type before the operation, it is reallocated. - rtype
 - Type: OpenCvSharpMatType
desired output matrix type or, rather, the depth since the number of channels are the same as the input has; 
            if rtype is negative, the output matrix will have the same type as the input. - alpha (Optional)
 - Type: SystemDouble
optional scale factor. - beta (Optional)
 - Type: SystemDouble
optional delta added to the scaled values. 
See Also