Converts the data type of an image
dip_Error dip_ConvertDataType ( in, out, dataType )
Convert the data type of the input data to dataType and stores the result in out.
Conversion from a complex type to another (non-complex) type, is done by taking the real part.
Conversion to a binary type from another (non-binary) type, is done as follows; any non-zero number becomes 1, zero becomes zero.
Data type | Name | Description |
dip_Image | in | Input |
dip_Image | out | Output |
dip_DataType | dataType | Data type. See DIPlib's data types |