Method ConvertTo
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ConvertTo(OutputArray, MatType, double, double)
Converts an array to another data type with optional scaling.
public void ConvertTo(OutputArray m, MatType rtype, double alpha = 1, double beta = 0)
Parameters
mOutputArrayoutput matrix; if it does not have a proper size or type before the operation, it is reallocated.
rtypeMatTypedesired 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.
alphadoubleoptional scale factor.
betadoubleoptional delta added to the scaled values.