Enhancing Details with Curves Tutorial

The Curves command provides a function similar to Log or Gamma stretching, but provides additional flexibility by allowing you to specify the output brightness level for each different input level. You can use it to redistribute pixel brightness and in effect change the shape of the image's histogram.

In this example we are going to reduce the core brightness of the comet and increase that of its tail relative to each other. This makes more detail visible than in a single unprocessed image.

  1. If you have not already done so, open the DG_HaleBopp.fits file in the Samples directory. (For help on opening files see the Open a File Tutorial).

  2. Click the Undo button on the toolbar to remove the stretch from the previous tutorial.

  3. Right-click on the image and select Screen Stretch > Max Val from the context menu. Almost everything except one bright star and the core of the comet dim substantially or disappear altogether.

  4. Select the Curves command on the Process menu. If the graph in the left half of the dialog does not show a straight line from the lower left to the upper right corner, right-click in the graph area and select Curve > Reset from the context menu.  Set the Curve Type to Modified Spline.

  5. The graph controls how the image is stretched. The brightness of pixels in the original image run along the bottom. The corresponding brightness of pixels in the processed image run up the graph.

  6. A straight line will have no effect on the image. If you raise the curve in the middle, pixels in the middle brightness range of the image will be boosted. You can fine-tune different parts of the image by adjusting different parts of the graph.

  7. To adjust the curve, click to create a new point. The line will adjust to pass through that point. You can drag the point in any direction using the mouse. To remove a point, right-click and select Delete Point.

  8. Now set the Output Range to 16-bit and click the Auto to the left of the Full Screen button. The image will show a little more detail but still be mostly dark. That's all right, since we can repeat the process iteratively. Click OK, then reactivate the Curves dialog and apply the curve again. Repeat several times until the tail is visible over a significant portion of the image; the inner near-saturation region of the coma remains small.

Here is the recommended "best practice" procedure for boosting faint detail in astronomical images:

  1. Set Max Val screen stretch mode.

  2. Look at the histogram in the Screen Stretch window. If there is a large gap at the left hand side, move the lower caret up to the upper end of the gap (but still within the gap). Use Process menu Stretch, with Linear Only, Screen Stretch, and 16-bit settings. Then reset the screen stretch mode to Max Val.

  3. Run the Curves command and moderately boost the curve as shown in the diagram. Click OK.

  4. Repeat steps 2 and 3 until you are getting close. If Auto Full Screen preview is on, you'll see immediately when you try to run the command one too many times.

  5. For the last step, run the Curves command one last time. Right-click and select Curve > Reset Curve. Now gently fine-tune the curve to bring out details in interesting parts of the image. For example, if a galaxy has some faint dust lanes, you might want to increase the slope of the curve in the area that emphasizes the dust lanes.