home *** CD-ROM | disk | FTP | other *** search
- <?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>5.7.  Curves</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="gimp-tools-color.html" title="5.  Color Tools" />
- <link rel="prev" href="gimp-tool-levels.html" title="5.6.  Levels" />
- <link rel="next" href="gimp-tool-posterize.html" title="5.8. Posterize" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">5.7. 
- <span lang="en" xml:lang="en">Curves</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="gimp-tool-levels.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">5. 
- <span lang="en" xml:lang="en">Color Tools</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="gimp-tool-posterize.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect2" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="gimp-tool-curves"></a>5.7. 
- <span lang="en" xml:lang="en">Curves</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2429 $</td>
- <td align="left">2008-01-23</td>
- <td align="left">j.h</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2646734" class="indexterm"></a>
- <a id="id2646748" class="indexterm"></a>
- <p>
- The Curves tool is the most sophisticated tool for changing the color,
- brightness, contrast or transparency of the active layer or a selection.
- While the Levels tool allows you to work on Shadows and Highlights, the
- Curves tool allows you to work on any tonal range. It works on RGB
- images.
- </p>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2646767"></a>5.7.1. 
- <span lang="en" xml:lang="en">Activate the Tool</span>
- </h4>
- </div>
- </div>
- </div>
- <p>You can get to this tools in several ways :</p>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- In the image menu through
- <span class="guimenu">Tools</span> ‚Üí <span class="guisubmenu">Color Tools</span> ‚Üí <span class="guimenuitem">Curves</span> or
- <span class="guimenu">Colors</span> ‚Üí <span class="guimenuitem">Curves</span>.
- </p>
- </li>
- <li>
- <p>
- By clicking on the tool icon
- <span class="guiicon">
- <span class="inlinemediaobject"><img src="../images/toolbox/stock-tool-curves-22.png" /></span>
- </span>
- in Toolbox, if this tool has been installed there (see
- <a class="link" href="gimp-dialogs-misc.html#gimp-tools-dialog" title="5.1.  Tools Dialog">Tools dialog</a>.
- </p>
- </li>
- </ul>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2646875"></a>5.7.2. 
- <span lang="en" xml:lang="en">
- “<span class="quote">Adjust Color Curves</span>” options
- </span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2646889"></a>
- <p class="title">
- <b>Figure 13.135. 
- <span lang="en" xml:lang="en">
- The “<span class="quote">Adjust Color Curves</span>” dialog
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/tools-curves.png" alt="The Adjust Color Curves dialog" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Channel</span>
- </dt>
- <dd>
- <p>
- There are five options:
- </p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">
- <span lang="en" xml:lang="en">Value</span>
- </span>
- </dt>
- <dd>
- <p>
- The curve represents the Value, i.e the brightness of
- pixels as you can see them in the composite image.
- </p>
- </dd>
- <dt>
- <span class="term">
- <span lang="en" xml:lang="en">Red; Green; Blue</span>
- </span>
- </dt>
- <dd>
- <p>
- The curve represents the quantity of color in each of the
- three RGB channels. Here, <span class="emphasis"><em>dark</em></span> means
- <span class="emphasis"><em>little</em></span> of the color.
- <span class="emphasis"><em>Light</em></span> means <span class="emphasis"><em>a lot</em></span>
- of the color.
- </p>
- </dd>
- <dt>
- <span class="term">
- <span lang="en" xml:lang="en">Alpha</span>
- </span>
- </dt>
- <dd>
- <p>
- The curve represents the opacity of the pixels.
- <span class="emphasis"><em>Dark</em></span> means
- <span class="emphasis"><em>very transparent</em></span>.
- <span class="emphasis"><em>Light</em></span> means <span class="emphasis"><em>very
- opaque</em></span>. Your image must have an Alpha channel
- for this option to be enabled.
- </p>
- </dd>
- </dl>
- </div>
- </dd>
- <dt>
- <span class="term">Reset Channel</span>
- </dt>
- <dd>
- <p>
- This button deletes all changes made to the selected channel and
- returns to default values.
- </p>
- </dd>
- <dt>
- <span class="term">Linear and Logarithmic buttons</span>
- </dt>
- <dd>
- <p>
- These buttons allow to choose the Linear or Logarithmic type of
- the histogram. You can also use the same options in Tool Options
- dialog.
- </p>
- </dd>
- <dt>
- <span class="term">Main Editing Area</span>
- </dt>
- <dd>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- <span class="emphasis"><em>The vertical gradient</em></span>: it represents the
- the destination, the output tonal scale. It ranges from 0
- (black) to 255 (white), from Shadows to Highlights.
- </p>
- </li>
- <li>
- <p>
- <span class="emphasis"><em>The horizontal gradient</em></span>: it represents
- the input tonal scale. It, too, ranges from 0 (black) to 255
- (white), from Shadows to Highlights. When you
- adjust the curve, it splits up into two parts; the upper part
- then represents the <span class="emphasis"><em>tonal balance</em></span> of the
- layer or selection.
- </p>
- </li>
- <li>
- <p>
- <span class="emphasis"><em>The chart</em></span>: the curve is drawn on a grid
- and goes from the bottom left corner to the top right corner.
- The pointer x/y position is permanently displayed in the top
- left part of the grid. By default, this curve is straight,
- because every input level corresponds to the same
- ouput tone. GIMP automatically places an anchor at both
- ends of the curve, for black (0) and white (255).
- </p>
- <p>
- If you click on the curve, a new <span class="emphasis"><em>anchor</em></span>
- is created. When the mouse pointer goes over an anchor, it
- takes the form of the moving crosshair. You can
- click-and-drag the anchor to bend the curve. If you click
- outside of the curve, an anchor is also created, and the
- curve includes it automatically.
- </p>
- <p>
- Unactive anchors are black. The active anchor is white. You
- can activate an anchor by clicking on it. You can also swap
- the anchor activation by using the Left and Right arrow keys
- of your keyboard. You can move the anchor vertically with the
- Up and Down arrow keys. This allows you to fine tune the
- anchor position. Holding the <span class="keycap"><strong>Shift</strong></span> down lets
- you move it by increments of 15 pixels.
- </p>
- <p>
- Two anchors define a <span class="emphasis"><em>curve segment</em></span> which
- represents a tonal range in the layer. You can click-and-drag
- this segment (this creates a new anchor). Of course, you
- can't drag it beyond the end anchors.
- </p>
- <p>
- To delete all anchors (apart from both ends), click on the
- <span class="guilabel">Reset Channel</span> button. To delete only one
- anchor, move it onto another point or to the
- grid border.
- </p>
- <p>
- Meanwhile, on the canvas, the mouse pointer has the form of
- an eye-dropper. If you click on a pixel, a vertical line
- appears on the chart, positioned to the source value of this
- pixel in the selected channel. If you Shift-click, you create
- an anchor in the selected channel. If you Ctrl-click, you
- create an anchor in all channels, possibly including the
- Alpha channel. You can also Shift-drag and Ctrl-drag: this
- will move the vertical line and the anchor will show up when
- releasing the mouse left button.
- </p>
- <p>
- The histogram of the active layer or selection for the
- selected channel is represented grayed out in the chart. It's
- only a reference.
- -->
- </p>
- </li>
- </ul>
- </div>
- </dd>
- <dt>
- <span class="term">All Channels</span>
- </dt>
- <dd>
- <p>
- <span class="guilabel">Open</span>: This button allows you to select
- a file holding curve settings.
- </p>
- <p>
- <span class="guilabel">Save</span>: Allows you to save any curves
- you have set to a file that can be loaded later.
- </p>
- </dd>
- <dt>
- <span class="term">Curve type</span>
- </dt>
- <dd>
- <p>
- <span class="guilabel">Smooth</span>: This mode constrains the curve
- type to a smooth line with tension. It provides a more
- realistic render than the following.
- </p>
- <p>
- <span class="guilabel">Free</span>: With GIMP-v2.4, you are not totally
- free to draw the curve. You actually draw a broken line that you
- can smooth by clicking the <span class="guibutton">Smooth</span> button.
- </p>
- </dd>
- <dt>
- <span class="term">Preview</span>
- </dt>
- <dd>
- <p>
- The Preview button makes all changes to the levels dynamically so
- that the new level settings can be viewed immediately.
- </p>
- </dd>
- </dl>
- </div>
- <div class="variablelist">
- <p class="title">
- <b>
- <span lang="en" xml:lang="en">Tool Options dialog</span>
- </b>
- </p>
- <p>
- Although this tool is not present in Tool box, nevertheless it has a
- Tool Option Dialog under the Toolbox. These options are described
- here:
- </p>
- <dl>
- <dt>
- <span class="term">Histogram Scale</span>
- </dt>
- <dd>
- <p>
- These two options have the same action as the logarithmic and
- Linear buttons in the Curves dialog.
- </p>
- </dd>
- <dt>
- <span class="term">Sample Average</span>
- </dt>
- <dd>
- <p>
- This slider sets the “<span class="quote">radius</span>” of the color-picking
- area. This area appears as a more or less enlarged square
- when you maintain the click on a pixel. Here, the eye-dropper is
- used to locate a pixel: radius = 1 seems the best.
- </p>
- </dd>
- </dl>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2647426"></a>5.7.3. 
- <span lang="en" xml:lang="en">Using the “<span class="quote">Curves</span>” tool</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Summary and basic shapes</span>
- </dt>
- <dd>
- <p>
- We create anchors and segments on the curve and we move them to
- shape the curve. This curve maps “<span class="quote">input</span>” tones of
- the active layer or selection to “<span class="quote">output</span>” tones.
- </p>
- <div class="figure">
- <a id="id2647472"></a>
- <p class="title">
- <b>Figure 13.136. 
- <span lang="en" xml:lang="en">How the Curves tool works</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/curves-work.png" alt="How the Curves tool works" />
- <div class="caption">
- <p>
- Moving the anchor of a pixel upwards makes this pixel
- brighter.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="figure">
- <a id="id2647510"></a>
- <p class="title">
- <b>Figure 13.137. 
- <span lang="en" xml:lang="en">Making the curve more horizontal</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/curves-horiz-1.png" alt="Making the curve more horizontal" />
- <div class="caption">
- <p>
- Making the curve more horizontal forces all the input tonal
- range to occupy a shrunk output tonal range.
- </p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/curves-horiz-2.png" alt="Making the curve more horizontal" />
- <div class="caption">
- <p>
- The histogram shows the compression of pixels into the
- output range. Darkest and brightest pixels disappeared:
- contrast decreases.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="figure">
- <a id="id2647574"></a>
- <p class="title">
- <b>Figure 13.138. 
- <span lang="en" xml:lang="en">Making the curve more vertical</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/curves-vert-1.png" alt="Making the curve more vertical" />
- <div class="caption">
- <p>
- Moving the upper end point to the left and the lower end
- point to the right is the same as moving the white slider to
- the left and the black slider to the right in the Levels
- tool: all pixels whose value is more than the white point
- (the flat part of the curve) are made white (more colored /
- more opaque according to the selected channel). All pixels
- whose value is less than the black point (the lower
- flattened curve) are made black (black / completely
- transparent).
- Pixels corresponding to points of the curve that have moved
- up are made lighter. Pixels corresponding to points of the
- curve that have moved down are made darker (green arrows).
- All these pixels will be extended to the whole output tonal
- range.
- </p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/curves-vert-2.png" alt="Making the curve more vertical" />
- <div class="caption">
- <p>
- The histogram shows the extension of values, from black (0)
- to White (255): contrast is increased. Since the Value
- channel is selected, changes affect all color channels and
- colors increase.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </dd>
- <dt>
- <span class="term">Practical cases</span>
- </dt>
- <dd>
- <div class="figure">
- <a id="id2647665"></a>
- <p class="title">
- <b>Figure 13.139. 
- <span lang="en" xml:lang="en">Invert colors</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/curves-invert.png" alt="Invert colors" />
- <div class="caption">
- <p>
- Black is made White (fully colored / fully opaque). White
- is made black (black, fully transparent). All pixels adopt
- the complementary color. Why that? Because subtracting 255
- from the channel values gives the complementary color. For
- example: 19;197;248 a sky blue gives 255-19; 255-197;
- 255-248 = 236;58;7, a bright red.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="figure">
- <a id="id2647708"></a>
- <p class="title">
- <b>Figure 13.140. 
- <span lang="en" xml:lang="en">Enhance contrast</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/curves-H-S.png" alt="Enhance contrast" />
- <div class="caption">
- <p>
- Contrast is increased in mid tones because the curve is
- steeper there. Highlights and Shadows are increased but
- contrast is slightly less in these areas because the curve
- is flatter.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="figure">
- <a id="id2647748"></a>
- <p class="title">
- <b>Figure 13.141. 
- <span lang="en" xml:lang="en">Working on color channels</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/curves-lighten-1.png" alt="Working on color channels" />
- <div class="caption">
- <p>
- For every channel, we moved the white point horizontally to
- the left, to the first Highlights. This lightens Highlights
- up. Then we shaped the curve to lighten Mid tons and
- Shadows while keeping black.
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="mediaobject">
- <img src="../images/toolbox/curves-lighten-2.png" />
- <div class="caption">
- <p>The original image and the result.</p>
- </div>
- </div>
- </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="gimp-tool-levels.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="gimp-tools-color.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="gimp-tool-posterize.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="gimp-tool-levels.html">5.6. 
- <span lang="en" xml:lang="en">Levels</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="gimp-tool-posterize.html">5.8. Posterize</a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-