cv.convertTo - MATLAB File Help |
Converts an array to another data type with optional scaling
dst = cv.convertTo(src)
dst = cv.convertTo(src, 'OptionName', optionValue, ...)
src
, and the specified type.uint8
, int32
, double
, etc.),
or rather the depth since the number of channels are the same as the input
has; if it is negative, the output matrix will have the same type as the
input. Default -1The method converts source pixel values to the target data type. Saturation is applied at the end to avoid possible overflows:
dst = cast(src*alpha + beta, RType);