4enhance - Methods to Enhance an Image9W




"NAME

,

enhance - Methods to Enhance an Image



2page index




&SYNOPSIS

`

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

D

unsigned int EqualizeImage( Image *image );

T

unsigned int GammaImage( Image *image, const char *gamma );

Z

unsigned int ModulateImage( Image *image, const char *modulate );

`

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

E

unsigned int NormalizeImage( Image *image );



2page index


$

FUNCTION *DESCRIPTIONS



2

ContrastImage

t

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

1

The format of the ContrastImage method is:

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

AA description of each parameter follows:


@

image:

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

D

sharpen:

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



2

EqualizeImage

S

Method EqualizeImage performs histogram equalization on the reference image.

1

The format of the EqualizeImage method is:

h
unsigned int EqualizeImage ( Image *image );

AA description of each parameter follows:


"

image:

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



,

GammaImage

P

Method GammaImage converts the reference image to gamma corrected colors.

.

The format of the GammaImage method is:

x
unsigned int GammaImage ( Image *image, const char *gamma );

AA description of each parameter follows:


"

image:

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

@

gamma:

QA character string indicating the level of gamma correction.



2

ModulateImage

V

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

1

The format of the ModulateImage method is:

~
unsigned int ModulateImage ( Image *image, const char *modulate );

AA description of each parameter follows:


"

image:

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

F

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:

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

AA description of each parameter follows:


"

image:

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



4

NormalizeImage

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

2

The format of the NormalizeImage method is:

i
unsigned int NormalizeImage ( Image *image );

AA description of each parameter follows:


"

image:

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

page index