File: enhance.html

package info (click to toggle)
imagemagick 4.2.8-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 11,116 kB
  • ctags: 5,107
  • sloc: ansic: 98,927; sh: 11,151; cpp: 8,810; perl: 1,922; tcl: 458; makefile: 347
file content (209 lines) | stat: -rw-r--r-- 4,846 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<HTML>
<HEAD>
<TITLE>enhance - Methods to Enhance an Image</TITLE>
<LINK REV="made" HREF="mailto:magick@wizards.dupont.com">
</HEAD>

<body background="../../images/background.gif">

<!-- INDEX BEGIN -->

<UL>

	<LI><A HREF="#NAME">NAME</A>
	<LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
	<LI><A HREF="#FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A>
	<UL>

		<LI><A HREF="#ContrastImage">ContrastImage</A>
		<LI><A HREF="#EqualizeImage">EqualizeImage</A>
		<LI><A HREF="#GammaImage">GammaImage</A>
		<LI><A HREF="#ModulateImage">ModulateImage</A>
		<LI><A HREF="#NegateImage">NegateImage</A>
		<LI><A HREF="#NormalizeImage">NormalizeImage</A>
	</UL>

</UL>
<!-- INDEX END -->

<HR>
<P>
<H1><A NAME="NAME">NAME</A></H1>
<P>
enhance - Methods to Enhance an Image

<P>
<HR>
<H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
<P>
void <STRONG>ContrastImage</STRONG>(Image*image,constunsigned intsharpen)

<P>
void <STRONG>EqualizeImage</STRONG>(Image*image)

<P>
void <STRONG>GammaImage</STRONG>(Image*image,constchar*gamma)

<P>
void <STRONG>ModulateImage</STRONG>(Image*image,constchar*modulate)

<P>
void <STRONG>NegateImage</STRONG>(Image*image,constunsigned intgrayscale)

<P>
void <STRONG>NormalizeImage</STRONG>(Image*image)

<P>
<HR>
<H1><A NAME="FUNCTION_DESCRIPTIONS">FUNCTION DESCRIPTIONS</A></H1>
<P>
<HR>
<H2><A NAME="ContrastImage">ContrastImage</A></H2>
<P>
Method ContrastImage enhances the intensity differences between the lighter
and darker elements of the image.

<P>
The format of the ContrastImage method is:

<blockquote>void ContrastImage (<A HREF="types/Image.html">Image</A> *image, const unsigned int sharpen) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG><A NAME="item_o">image:</A></STRONG><DD>
<P>
The address of a structure of type Image; returned from ReadImage.

<DT><STRONG>sharpen:</STRONG><DD>
<P>
If True, the intensity is increased otherwise it is decreased.

</DL></DL>
<P>
<HR>
<H2><A NAME="EqualizeImage">EqualizeImage</A></H2>
<P>
Method EqualizeImage performs histogram equalization on the reference
image.

<P>
The format of the EqualizeImage method is:

<blockquote>void EqualizeImage (<A HREF="types/Image.html">Image</A> *image) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG>image:</STRONG><DD>
<P>
The address of a structure of type Image; returned from ReadImage.

</DL></DL>
<P>
<HR>
<H2><A NAME="GammaImage">GammaImage</A></H2>
<P>
Method GammaImage converts the reference image to gamma corrected colors.

<P>
The format of the GammaImage method is:

<blockquote>void GammaImage (<A HREF="types/Image.html">Image</A> *image, const char *gamma) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG>image:</STRONG><DD>
<P>
The address of a structure of type Image; returned from ReadImage.

<DT><STRONG>gamma:</STRONG><DD>
<P>

<FONT SIZE=-1>A</FONT> character string indicating the level of gamma
correction.

</DL></DL>
<P>
<HR>
<H2><A NAME="ModulateImage">ModulateImage</A></H2>
<P>
Method ModulateImage modulates the hue, saturation, and brightness of an
image.

<P>
The format of the ModulateImage method is:

<blockquote>void ModulateImage (<A HREF="types/Image.html">Image</A> *image, const char *modulate) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG>image:</STRONG><DD>
<P>
The address of a structure of type Image; returned from ReadImage.

<DT><STRONG>modulate:</STRONG><DD>
<P>

<FONT SIZE=-1>A</FONT> 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).

</DL></DL>
<P>
<HR>
<H2><A NAME="NegateImage">NegateImage</A></H2>
<P>
Method NegateImage negates the colors in the reference image. The Grayscale
option means that only grayscale values within the image are negated.

<P>
The format of the NegateImage method is:

<blockquote>void NegateImage (<A HREF="types/Image.html">Image</A> *image, const unsigned int grayscale) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG>image:</STRONG><DD>
<P>
The address of a structure of type Image; returned from ReadImage.

</DL></DL>
<P>
<HR>
<H2><A NAME="NormalizeImage">NormalizeImage</A></H2>
<P>
Method NormalizeImage normalizes the pixel values to span the full range of
color values. This is a contrast enhancement technique.

<P>
The format of the NormalizeImage method is:

<blockquote>void NormalizeImage (<A HREF="types/Image.html">Image</A> *image) </blockquote>

<P>

<FONT SIZE=-1>A</FONT> description of each parameter follows:

<DL><DL>
<DT><STRONG>image:</STRONG><DD>
<P>
The address of a structure of type Image; returned from ReadImage.

</DL></DL>
</BODY>

</HTML>