The histogram

I wasn't sure which category to put this in but here is my problem, I mean I don't fully understand the histogram...
I just finished taking a series of images this morning and when I look at the histogram, I have nothing at either end but a bunch in the middle, it looks like a hill, I know that's the shape I should be getting but I have absolutely NOTHING for about a 3rd of the way in at both ends, what does this mean?.... I corrected this in photoshop using levels after my shoot and the colours just popped right out and look fab but I don't know what this actually means, am I doing anything wrong when I actually take the shot?
I just finished taking a series of images this morning and when I look at the histogram, I have nothing at either end but a bunch in the middle, it looks like a hill, I know that's the shape I should be getting but I have absolutely NOTHING for about a 3rd of the way in at both ends, what does this mean?.... I corrected this in photoshop using levels after my shoot and the colours just popped right out and look fab but I don't know what this actually means, am I doing anything wrong when I actually take the shot?

This may help you...

You didn’t do anything wrong.
The histogram can only show you what you’ve got. In this case you took a photo of a load of mid tones and the histogram shows you this. There are no right or wrong histograms, you have to look at each one in context.
For instance a photo of a white seagull against a dark sea would create a histogram which would be completely the opposite of yours but both photos would be perfectly acceptable.
The histogram can only show you what you’ve got. In this case you took a photo of a load of mid tones and the histogram shows you this. There are no right or wrong histograms, you have to look at each one in context.
For instance a photo of a white seagull against a dark sea would create a histogram which would be completely the opposite of yours but both photos would be perfectly acceptable.

No, you did nothing wrong, the image as has been said just lacks contrast. The histogram is basically a graph of tones, dark on the left and bright on the right. If your histogram is bunched in the middle it just lacks dark and bright tones, easily corrected/enhanced in editing software. In addition there is no ideal shape for a histogram, Keithh's analogy of a seagull for example or a polar bear on snow for another, both different histograms and both possibly excellent photos.

Nothing wrong as every histogram is different.
You have to decide if it's reasonable or appropriate for the shot you've taken.
And then, how much you may need to adjust Black and White points in software.
A telephoto shot in the fog will not, often, for example, have full black or white tones though it's up to you how you present the end result.
You have to decide if it's reasonable or appropriate for the shot you've taken.
And then, how much you may need to adjust Black and White points in software.
A telephoto shot in the fog will not, often, for example, have full black or white tones though it's up to you how you present the end result.

Agree with the comment above but also remember that the histogram shown in the Raw editor is not directly a histogram of the raw data (not possible). It is the histogram of a rendered version which will reflect any editing changes you make. In your case you wished to increase the contrast though you do not have to always stretch from black to white. You may have other cases where the histogram is clipped at one end. You can adjust the exposure in the Raw editor and may be able to pull it in completely but certainly by a couple of stops. In a few cases you could clip at both ends which may mean the scene dynamic range was too large for your camera. If there is not enough adjustment to fully recover, you will know next time that multiple exposures were needed.
Dave
Dave