NAME

enhance - Methods to Enhance an Image


SYNOPSIS

void ContrastImage( Image *image, const unsigned int sharpen );

void EqualizeImage( Image *image );

void GammaImage( Image *image, const char *gamma );

void ModulateImage( Image *image, const char *modulate );

void NegateImage( Image *image, const unsigned int grayscale );

void NormalizeImage( Image *image );


FUNCTION DESCRIPTIONS


ContrastImage

Method ContrastImage enhances the intensity differences between the lighter and darker elements of the image.

The format of the ContrastImage method is:

void ContrastImage ( Image *image, const unsigned int sharpen );

A description of each parameter follows:

image:

The address of a structure of type Image; returned from ReadImage.

sharpen:

If True, the intensity is increased otherwise it is decreased.


EqualizeImage

Method EqualizeImage performs histogram equalization on the reference image.

The format of the EqualizeImage method is:

void EqualizeImage ( Image *image );

A description of each parameter follows:

image:

The address of a structure of type Image; returned from ReadImage.


GammaImage

Method GammaImage converts the reference image to gamma corrected colors.

The format of the GammaImage method is:

void GammaImage ( Image *image, const char *gamma );

A description of each parameter follows:

image:

The address of a structure of type Image; returned from ReadImage.

gamma:

A character string indicating the level of gamma correction.


ModulateImage

Method ModulateImage modulates the hue, saturation, and brightness of an image.

The format of the ModulateImage method is:

void ModulateImage ( Image *image, const char *modulate );

A description of each parameter follows:

image:

The address of a structure of type Image; returned from ReadImage.

modulate:

A character string indicating the percent change in brightness, saturation, and hue in floating point notation separated by commas (e.g. 10.1,0.0,3.1).


NegateImage

Method NegateImage negates the colors in the reference image. The Grayscale option means that only grayscale values within the image are negated.

The format of the NegateImage method is:

void NegateImage ( Image *image, const unsigned int grayscale );

A description of each parameter follows:

image:

The address of a structure of type Image; returned from ReadImage.


NormalizeImage

Method NormalizeImage normalizes the pixel values to span the full range of color values. This is a contrast enhancement technique.

The format of the NormalizeImage method is:

void NormalizeImage ( Image *image );

A description of each parameter follows:

image:

The address of a structure of type Image; returned from ReadImage.