Changes the image data type, using a complex2real conversion,
* a gamma factor, and an absolute mode (modulus). \n
* When demoting the data type the function will scan source for min/max values or use fixed values (cast_mode)
* to scale the result according to the target range. \n
* Except complex to real that will use only the complex2real conversion. \n
* Images must be of the same size and color mode. If data type is the same nothing is done. \n
* Returns IM_ERR_NONE, IM_ERR_DATA or IM_ERR_COUNTER, see also \ref imErrorCodes. \n
* See also \ref imDataType, \ref datatypeutl, \ref imComplex2Real, \ref imGammaFactor and \ref imCastMode.
*
* \verbatim im.ConvertDataType(src_image: imImage, dst_image: imImage, cpx2real: number, gamma: number, absolute: boolean, cast_mode: number) -> error: number [in Lua 5] \endverbatim
* \verbatim im.ConvertDataTypeNew(image: imImage, data_type: number, cpx2real: number, gamma: number, absolute: boolean, cast_mode: number) -> error: number, new_image: imImage [in Lua 5] \endverbatim
* \ingroup convert
Changes the image data type, using a complex2real conversion, * a gamma factor, and an absolute mode (modulus). \n * When demoting the data type the function will scan source for min/max values or use fixed values (cast_mode) * to scale the result according to the target range. \n * Except complex to real that will use only the complex2real conversion. \n * Images must be of the same size and color mode. If data type is the same nothing is done. \n * Returns IM_ERR_NONE, IM_ERR_DATA or IM_ERR_COUNTER, see also \ref imErrorCodes. \n * See also \ref imDataType, \ref datatypeutl, \ref imComplex2Real, \ref imGammaFactor and \ref imCastMode. * * \verbatim im.ConvertDataType(src_image: imImage, dst_image: imImage, cpx2real: number, gamma: number, absolute: boolean, cast_mode: number) -> error: number [in Lua 5] \endverbatim * \verbatim im.ConvertDataTypeNew(image: imImage, data_type: number, cpx2real: number, gamma: number, absolute: boolean, cast_mode: number) -> error: number, new_image: imImage [in Lua 5] \endverbatim * \ingroup convert