Specifications
Contents
ix
Conversion of Absolute Colors to and from Palette Colors. 9-7
Conversion from Color to Gray Scale................................. 9-8
ColorToGray.................................................................. 9-8
Conversion from Gray Scale to Color (Pseudo-color) ........ 9-9
GrayToColor.................................................................. 9-9
Conversion of Color Models............................................... 9-10
Data ranges in the HLS and HSV Color Models ............ 9-11
RGB2HSV..................................................................... 9-12
HSV2RGB..................................................................... 9-12
RGB2HLS ..................................................................... 9-13
HLS2RGB ..................................................................... 9-13
RGB2LUV ..................................................................... 9-14
LUV2RGB ..................................................................... 9-14
RGB2XYZ ..................................................................... 9-15
XYZ2RGB ..................................................................... 9-15
RGB2YCrCb.................................................................. 9-16
YCrCb2RGB.................................................................. 9-16
RGB2YUV..................................................................... 9-17
YUV2RGB..................................................................... 9-17
YCC2RGB..................................................................... 9-18
Using Color-Twist Matrices ................................................ 9-18
CreateColorTwist........................................................... 9-19
SetColorTwist................................................................ 9-20
ApplyColorTwist ............................................................ 9-21
DeleteColorTwist........................................................... 9-22
ColorTwistFP................................................................. 9-23
Chapter 10 Histogram, Threshold, and Compare Functions
Thresholding...................................................................... 10-2
Threshold ...................................................................... 10-2