4enhance - Methods to Enhance an Image>/


NAME



%enhance - Methods to Enhance an Image






(

SYNOPSIS



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



Bvoid EqualizeImage( Image *image );



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



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



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



Cvoid NormalizeImage( Image *image );






B

FUNCTION DESCRIPTIONS






2

ContrastImage



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



*The format of the ContrastImage method is:

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


=A description of each parameter follows:


7

image:


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

$

sharpen:


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






2

EqualizeImage



EMethod EqualizeImage performs histogram equalization on the referenceimage.



*The format of the EqualizeImage method is:

]
void EqualizeImage ( Image *image );


=A description of each parameter follows:


"

image:


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






,

GammaImage



IMethod GammaImage converts the reference image to gamma corrected colors.



'The format of the GammaImage method is:

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


=A description of each parameter follows:


"

image:


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

"

gamma:


EA character string indicating the level of gamma correction.






2

ModulateImage



HMethod ModulateImage modulates the hue, saturation, and brightness of animage.



*The format of the ModulateImage method is:

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


=A description of each parameter follows:


"

image:


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

%

modulate:


HA character string indicating the percent change inGbrightness, saturation, and hue in floating point notation separated bycommas (e.g. 10.1,0.0,3.1).






.

NegateImage



KMethod NegateImage negates the colors in the reference image. The GrayscaleEoption means that only grayscale values within the image are negated.



(The format of the NegateImage method is:

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


=A description of each parameter follows:


"

image:


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






4

NormalizeImage



KMethod NormalizeImage normalizes the pixel values to span the full range of7color 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:


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