OT because it’s mainly for photographers, but I thought some of you would like to read it. It’s part of a small series of articles I’m writing for a photo site. A bit techy, but not that hard to understand 
A quick guide to using Curves in Photoshop
At first glance, the Curves dialog can look intimidating, its hard to visualise what is going on. In actual fact, its quite simple to understand, and more importantly its very powerful, and in many cases much more versatile than using Levels. Using Curves allows you to control exactly where in your image you can fine tune contrast, and it also allows you to increase contrast without losing detail in the shadows or highlights. Whats more, this can all be done visually, intuitively, and easily!
To start off, here is a fairly typical image that could benefit with some tweaking in curves. I shot it on my compact digital camera which I deliberately set to record images as flat as possible: turning all the settings for contrast, saturation and sharpness to their minimum settings. This means that images out of the camera look dull, but I prefer to control these things myself later as the camera defaults are indeed vivid but not always to my liking.

A quick look at the histogram reveals that this image is fairly high contrast, with values at both ends of the range:

This means that any contrast increase using Levels will clip some of the detail in the shadow and highlight regions.
So here is the result of a Levels operation, the contrast is higher, but it hasnt really improved the image. Some of the detail in the leaf has got lost, as has some shadow detail:

In this case, what we really need to do is to increase the local contrast in the leaf, without losing any of the detail in the shadows or highlights. This is where Curves come in, Levels are too crude a tool for this job.
If we revert back to the original and call up the Curves dialog, we can easily perform the corrections that are necessary to bring out the best in this image.
The first thing you should realise when opening the Curves dialog is that you shouldnt be looking at the graph, you should be looking at your image instead this is where the work gets done. I think that once this idea is grasped, much of the fear of using Curves vanishes.
What the Curves command does is to take pixels of one value, and re-map them to another (either lighter or darker), the reason for the curve is to make the transitions gentle. So by re-mapping one value the curve will also affect neighbouring values in order to make the transition subtle. The steeper the curve is, the higher the contrast between values. Conversely, the shallower the curve, the less contrast between those values.
How does this impact on our image? Well, it allows us to target the specific values we want to work with. With the Curves dialog open, if you left-click with your mouse anywhere in the image the value underneath your cursor with be plotted on the curve (which is a straight line at the moment). If you control-click (command on the Mac) on any part of your image, the value represented underneath your cursor will be placed on your curve as a point this is the key to working with Curves, and its very simple.
Looking at the image, the area which needs more contrast is the leaf itself, increasing the contrast in this area will help reveal the detail in the leaf rather than destroy it like the Levels command does. So I simply control-click on the lightest and darkest areas of the leaf to plot those respective values on the curve. Illustrated below are the two points I clicked on:

And the resulting curve:







Thanks for posting 