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.
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).
Click the Undo button on the toolbar to remove the stretch from the previous tutorial.
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.
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.
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.
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.
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.
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:
Set Max Val screen stretch mode.
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.
Run the Curves command and moderately boost the curve as shown in the diagram. Click OK.
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.
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.