File: ch04s06.html

package info (click to toggle)
gimp-help 2%2B0.7-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 30,852 kB
  • ctags: 4
  • sloc: xml: 104,248; sh: 544; makefile: 262; perl: 42
file content (307 lines) | stat: -rw-r--r-- 12,208 bytes parent folder | download
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>6. Histogram dialog</title>
    <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
    <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
    <link rel="start" href="index.html" title="&#10;      &#10;    " />
    <link rel="up" href="ch04.html" title="Chapter 4. Dialogs" />
    <link rel="prev" href="ch04s05.html" title="5. Indexed Palette dialog" />
    <link rel="next" href="ch04s07.html" title="7. Navigation Dialog" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center" id="chaptername">6. Histogram dialog</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ch04s05.html">Prev</a> </td>
          <th width="60%" align="center" id="sectionname">6. Histogram dialog</th>
          <td width="20%" align="right"> <a accesskey="n" href="ch04s07.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both"><a id="gimp-histogram-dialog"></a>6. Histogram dialog</h2>
          </div>
        </div>
      </div>
      <a id="id3337461" class="indexterm"></a>
      <div class="informalfigure">
        <div class="mediaobject">
          <img src="../images/dialogs/dialogs-histogram-basic.png" />
          <div class="caption">
            <p>
	  The Histogram dialog
	</p>
          </div>
        </div>
      </div>
      <p>
    The Histogram dialog shows you information about the statistical
    distribution of color values in the image that is currently
    active.  This information is often useful when you are trying to
    <span class="emphasis"><em>color balance</em></span> an image.  However, the
    Histogram dialog is purely informational:  nothing you do with it
    will cause any change to the image.  If you want to perform a
    histogram-based color correction, use the <a href="ch03s05s06.html" title="5.6. Levels tool">Levels</a> tool.
  </p>
      <p>
    This is a dockable dialog; see the section on <a href="ch02s03s04.html" title="3.4. Dialogs and Docking">Dialogs and Docking</a> for help on
    manipulating it.  It can be activated in two ways:
  </p>
      <div class="itemizedlist">
        <ul type="disc">
          <li>
            <p>   
        From the Toolbox menu:
        <span class="guimenu">File</span>-&gt;<span class="guisubmenu">Dialogs</span>-&gt;<span class="guimenuitem">Histogram</span>
      </p>
          </li>
          <li>
            <p>   
        From the image menu:
        <span class="guimenu">Dialogs</span>-&gt;<span class="guimenuitem">Histogram</span>
      </p>
          </li>
        </ul>
      </div>
      <div class="simplesect" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="id3337799"></a>About Histograms</h3>
            </div>
          </div>
        </div>
        <p>
      In GIMP, each layer of an image can be decomposed into one or
      more color channels:  for an RGB image, into R, G, and B
      channels; for a grayscale image, into a single Value channel.
      Layers that support transparency have an additional channel, the
      alpha channel.  Each channel supports a range of intensity
      levels from 0 to 255 (integer valued).  Thus, a black pixel is
      encoded by 0 on all color channels; a white pixel by 255 on all
      color channels.  A transparent pixel is encoded by 0 on the
      alpha channel; an opaque pixel by 255.
    </p>
        <p>
      For RGB images, it is convenient to define a Value "pseudochannel".
      This is not a real color channel:  it does not reflect
      any information stored directly in the image.  Instead, the
      Value at a pixel is given by the equation 
      <tt class="code">
        V = (R + G + B)/3
      </tt>,
      rounded to the nearest integer.  Essentially, the Value is what
      you would get at that pixel if you converted the image to
      Grayscale mode.
    </p>
        <p>
      For more information on channels, please consult the <a href="ch02s04.html" title="4. Working with Images">Working with Images</a> section.
    </p>
        <div class="variablelist">
          <p class="title">
            <b>Using the Histogram dialog</b>
          </p>
          <dl>
            <dt>
              <span class="term">Channel</span>
            </dt>
            <dd>
              <div class="informalfigure">
                <div class="mediaobject">
                  <img src="../images/dialogs/dialogs-histogram-menu.png" />
                  <div class="caption">
                    <p>
		  Channel options for an RGB layer with alpha channel.
		</p>
                  </div>
                </div>
              </div>
              <p>
            This allows you to select which channel to use.  The
            possibilities depend on the layer type of the active
            layer.  Here are the entries you might see, and what they
            mean: 
          </p>
              <div class="variablelist">
                <dl>
                  <dt>
                    <span class="term">Value</span>
                  </dt>
                  <dd>
                    <p>
                  For RGB and Grayscale images, this shows the
                  distribution of brightness values 
                  across the layer.  For a grayscale image, these are
                  read directly from the image data.  For an RGB
                  image, they are taken from the Value pseudochannel.  
                </p>
                    <p>
                  For an indexed image, the "Value" channel actually
                  shows the distribution of frequencies for each
                  colormap index:  thus, it is a "pseudocolor"
                  histogram rather than a true color histogram.  
                </p>
                  </dd>
                  <dt>
                    <span class="term">Red, Green, Blue</span>
                  </dt>
                  <dd>
                    <p>
                  These only appear for layers from RGB images.  They
                  show the distribution of intensity levels for the
                  Red, Green, or Blue channels respectively.
                </p>
                  </dd>
                  <dt>
                    <span class="term">Alpha</span>
                  </dt>
                  <dd>
                    <p>
                  This shows the distribution of opacity levels.  If
                  the layer is completely opaque or completely
                  transparent, the histogram will consist of a single
                  bar on the left or right edge.
                </p>
                  </dd>
                  <dt>
                    <span class="term">RGB</span>
                  </dt>
                  <dd>
                    <div class="informalfigure">
                      <div class="mediaobject">
                        <img src="../images/dialogs/dialogs-histogram-rgb.png" />
                        <div class="caption">
                          <p>
			Combined histograms of R, G, and B channels.
		      </p>
                        </div>
                      </div>
                    </div>
                    <p>
                  This entry, only available for RGB layers, shows the
                  R, G, and B histograms superimposed, so that you can
                  see all of the color distribution information in a
                  single view.
                </p>
                  </dd>
                </dl>
              </div>
            </dd>
            <dt>
              <span class="term">Linear/Logarithmic buttons</span>
            </dt>
            <dd>
              <div class="informalfigure">
                <div class="mediaobject">
                  <img src="../images/dialogs/dialogs-histogram-log.png" />
                  <div class="caption">
                    <p>
		  The histogram shown at the top, changed to logarithmic
		  mode. 
		</p>
                  </div>
                </div>
              </div>
              <p>
            These buttons determine whether the histogram will be
            displayed using a linear or logarithmic Y axis.  For
            images taken from photographs, the linear mode is most
            commonly useful.  For images that contain substantial
            areas of constant color, though, a linear histogram will
            often be dominated by a single bar, and a logarthmic
            histogram will often be more useful.  
          </p>
            </dd>
            <dt>
              <span class="term">Range Setting</span>
            </dt>
            <dd>
              <div class="informalfigure">
                <div class="mediaobject">
                  <img src="../images/dialogs/dialogs-histogram-range.png" />
                  <div class="caption">
                    <p>
                  Dialog aspect after range fixing.
            		</p>
                  </div>
                </div>
              </div>
              <p>
            You can restrict the analysis, for the statistics shown at
            the bottom of the dialog, to a limited range of values if
            you wish.  You can set the range in one of three ways:
          </p>
              <div class="itemizedlist">
                <ul type="disc">
                  <li>
                    <p>
                Click and drag the pointer across the histogram
                display area, from the lowest level to the highest
                level of the range you want.
              </p>
                  </li>
                  <li>
                    <p>
                Click and drag the black or white triangles on the
                slider below the histogram.
              </p>
                  </li>
                  <li>
                    <p>
                Use the spinbutton entries below the slider (left
                entry: bottom of range; right entry: top of range).
              </p>
                  </li>
                </ul>
              </div>
            </dd>
            <dt>
              <span class="term">Statistics</span>
            </dt>
            <dd>
              <p>
            At the bottom of the dialog are shown some basic
            statistics describing the distribution of channel values,
            restricted to the selected range.  These are the mean,
            standard deviation, and median of the selected histogram
            portion; the number of pixels in the image; the number
            whose values fall within the selected range; and the
            percentage whose values fall within the selected range.
          </p>
            </dd>
          </dl>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ch04s05.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ch04.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="ch04s07.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">5. Indexed Palette dialog </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> 7. Navigation Dialog</td>
        </tr>
      </table>
    </div>
  </body>
</html>