double QccIMGImageComponentClipPixel(double pixel_value);
int QccIMGImageComponentClip(QccIMGImageComponent
*image_component);
int QccIMGImageComponentNormalize(QccIMGImageComponent
*image_component);
QccIMGImageComponentClipPixel() clips a single pixel value to the 0-255 range, returning 0 for values less than 0, 255 for values greater than 255, and pixel_value itself, unchanged, for values greater than or equal to 0 and less than or equal to 255.
QccIMGImageComponentClip() calls QccIMGImageComponentClipPixel() for each pixel in image_component, effectively ensuring that each pixel in image_component is clipped to the 0-255 range.
QccIMGImageComponentNormalize() expands or contracts the dynamic range of the pixel values in image_component to the 0-255 range. QccIMGImageComponentNormalize() maps the range image_component->min_val to image_component->max_val to the range 0-255 in a linear fashion. image_component->min_val and image_component->max_val must be set correctly via a call to QccIMGImageComponentSetMaxMin(3) prior to calling QccIMGImageComponentNormalize().