The LEADTOOLS Color Conversion C API features provides many options to maximize image display quality for any imaging purpose, including medical images, scanned documents or digital photographs.
* 12-bit and 16-bit grayscale support included only in Document and Medical Imaging products.
** LEADTOOLS' window leveling supported only in Medical Imaging products.
Source Color Space | Can be converted to | Conversion method | Recommended |
---|---|---|---|
RGB | Any other color space. | Built-in, ICC profiles, or emulation tables, depending on the destination color space. | |
BGR | Any other color space. | Built-in, ICC profiles, or emulation tables, depending on the destination color conversion. | |
YUV | Any other color space. | Built in. | |
CMYK | Any other color space. | Emulation Tables (one way CMYK => RGB) ICC Profiles. Built-in. |
The best conversion is through the ICC Profiles (USE_ICC). This is because of the nature of the CMYK conversion, which is machine-dependant. You can use profiles that vary in the degree of black color (ink) generation. |
HSV | Any other color space. | Built-in. | |
HSL | Any other color space. | Built-in. | |
YIQ | Any other color space. | Built-in. | |
LAB | Any other color space. | Emulation Tables (one way CMYK => RGB). ICC Profiles. Built-in. |
For two-way conversion (RGB to LAB and vice versa), the best solution is with emulation tables and built-in conversions. These preserve the colors better. However, for one-way conversion you can use ICC profiles. |
XYZ | Any other color space. | Built-in. | |
YCCK | Any other color space. | Built-in. | |
Y41P | Any other color space. | Built-in. | |
UYVY | Any other color space. | Built-in. | |
YUY2 | Any other color space. | Built-in. | |
YVU9 | Any other color space. | Built-in. | |
YCC | Any other color space. | Built-in. | |
ARGB4 | Any other color space. | Built-in. | |
IHS | Any other color space. | Built-in. |
Programming with LEADTOOLS Color Space Conversion
Palettes and Manipulating Palettes
Dithering and Supported Dithering Methods