21 December 2008

Histograms 101

Got a digital camera?  Do you use Adobe Photoshop? (or Photoshop Elements, or Nikon Capture NX, or Lightroom, or Aperture, or just about any other digital image editing app?) Then you’ve probably seen a histogram, whether you know it or not.  If you’ve read any blogs or forums about digital photography, or listened to any podcasts about digital photography, you’ve probably heard that you should “check your histogram” or “keep an eye on the histogram” to get an idea of how good your exposure was.  If you’re like me, right about now you’re probably wondering just what the heck a histogram is and what you should be looking for when you “keep an eye on it,” but you don’t want to ask.  Not to worry; I’m here to help!

So, what’s a histogram?  Here’s what Dictionary.com has to say about it:

–noun Statistics.

a graph of a frequency distribution in which rectangles with bases on the horizontal axis are given widths equal to the class intervals and heights equal to the corresponding frequencies.”

 Oh, that’s all it is?  Right.  Got it.  Perfectly clear now.  

Not. 

Let’s see if I can untangle that a little bit for you.  As it pertains to a photograph, a histogram is a depiction of the relative brightness levels of the pixels in the image.  That probably didn’t help, did it? 

OK, let’s try an example.  Here’s a simple black to white gradient:


And here’s the histogram that goes with it:

As you can see, the histogram is almost completely flat, and extends all the way from left to right.  That’s because there are an equal number of pixels at each brightness level in the image it represents.  Now, look at this gradient, in which I’ve shifted the midpoint to the right, so it has more dark pixels than light:

Here’s the histogram for this gradient: 

You can see that it “piles up” at the left side, at the lower brightness levels, reflecting the fact that there are more dark pixels in this gradient.  Here’s a gradient with a left-shifted midpoint, which increases the number of light pixels:

 And here’s the corresponding histogram:

Now the graph “piles up” on the right side since there are more light pixels than dark. 

Here’s a picture I recently took in Japan of some trees after a fresh snow lit by the rising sun: 

 And the histogram for this shot:

 

Based on what we now know about histograms, what can we tell about this image?  Well, we can see that there are quite a few dark pixels (evidenced by the peak at the left end of the graph), not too many in the medium-dark range, and quite a few in the medium-light area.  Also, the fact that the peak on the left-hand side piles up against the edge of the graph indicates that there are areas of the photo in the shadows that have completely lost detail (they’ve gone entirely black, commonly called "blocked-up shadows").  On the other hand, since there’s no peak on the right end of the graph there should be details visible in all the highlight areas.  Since there’s some “room” at the right end of the graph, it shows that I could have increased my exposure by about half a stop or so without losing much detail in the highlights. 

That’s enough for now; in the future, I’ll get into some more details about how you can use a histogram to make adjustments while you’re out shooting and increase your chances of getting that “perfect shot!”

 

See more of my photography at http://lokahiphoto.com.

Looking for more great photography related info? Check out the
This Week in Photography blog and podcast.

09 November 2008

Quick Tip #1 – Polarizing Filters

A lot of people will tell you, with so many powerful image-editing software packages available, that filters are unnecessary. (Just to be clear, I'm talking about the kind of filters you attach to your lens, not the kind you find in Photoshop.) That’s true… to an extent. You can pretty well replicate the effect of many popular filters with a click or two in your favorite image editor. Split neutral density, graduated neutral density, and color correction filters, as well as many “special effects” filters have awfully good software equivalents, but there are a few filters you can’t replace easily (or even at all). One of these is the polarizing filter. Keep reading, and I’ll tell you why you want to keep one of these in your bag and how to make the best use of it.

Polarization is a physical property of light. The easiest way to explain it is to think of wiggling a rope to make waves travel along it; if you move the end of the rope up and down, the waves will be vertical:


If you move the rope side to side, the waves will be horizontal. Un-polarized light has both kinds of waves, while “perfectly” polarized light has waves that oscillate in only one direction. A polarizing filter does to light kind of like what a picket fence would do to your wiggling rope. If the rope runs through a picket fence, only waves in one direction will pass through and waves in the other direction will be cancelled out. The polarizing filter is like that picket fence for the light going into your lens; light oscillating in one plane passes through and light oscillating in the other plane is blocked. Put two polarizing filters together (two picket fences), with their “slats” turned ninety degrees to each other, and ALL the light is blocked and NO light gets through.

Now here’s the photography part: light can get polarized in different ways. Light reflected from a non-metal surface (think glass or water) gets polarized; light passing through the glass, or the surface of the water, remains non-polarized. Put a polarizing filter on your lens and rotate it to the right angle, and you block the light reflected from the water or the glass, i.e. you block the contrast- and saturation-robbing glare you get from those reflections. Ever seen pictures of the ocean where you can see right through the water’s surface to the fish swimming beneath? Probably shot with a polarizer. Likewise photos of shop windows where you can hardly see the glass. Need to kill reflections? Throw on a polarizing filter and fire away. How do you know what the “right angle” is, you ask? Easy! Compose your shot and then rotate the polarizer until the reflections are minimized.

Are there other situations where a polarizer can come in handy? Absolutely! Have you ever seen a landscape with a beautiful, dark blue saturated sky? Chances are there was a polarizer involved there, too. As sunlight is scattered by the atmosphere, it also gets partially polarized. By using a polarizing filter, you can block some of the polarized light, which will darken and saturate that blue sky. There’s a catch, though; the whole sky isn’t polarized equally. Some areas of the sky are more polarized, and therefore more susceptible to the effect of a polarizing filter, than others. You’ll get the maximum darkening effect if you point your lens ninety degrees to the path of the sun through the sky. Put more simply, keep the sun off one of your shoulders for the maximum effect. If the sun is directly behind or directly in front of you, you won’t get nearly as much out of your filter. Also, be careful using a polarizer with a wide-angle lens. The large angle of view you get means the sky can end up lighter at one side of the frame and darker at the other side, which can look pretty funny. The bright side is that you see the effect of the polarizer through the viewfinder, so you can catch this gotcha before you trip the shutter if you’re paying attention.

How much would you pay for this magical filter that can cut glare and give you gorgeous saturated blue skies? Don’t answer yet! There’s more! Many kinds of leaves have a waxy coating that polarizes reflected light. By cutting that reflected glare with a polarizing filter, you can nicely saturate the greens of summer foliage or the beautiful golds and reds of fall leaves.

There are a couple of things you’ll want to keep in mind about polarizing filters, though. First of all, there are two types available, linear and circular. Which do you want to buy? If you have an autofocus camera, get a circular polarizer. Autofocus cameras may be unable to focus with a linear polarizer mounted. I have also heard that evaluative metering systems in newer cameras may not work properly with a linear polarizer. Another caveat: regardless of what kind of polarizer you use, you’ll lose about one stop of light; for example, say you shoot a scene without a filter and your aperture and shutter speed are f/4 and 1/1000 of a second for the desired exposure. Add a polarizer and you’ll need to use either (about) f/2.8 and 1/1000 or (about) f/4 and 1/500 to achieve the same exposure. Not necessarily good or bad, just something to be aware of.

So do you need a polarizer? Like so many other questions in photography, the answer is a definite “it depends.” It depends on the kind of shooting you do and what effects you want to achieve. I will tell you this, however: a polarizer can do things for you that are very difficult, if not impossible, to do in software-based post-processing.

Visit my photography site at http://lokahiphoto.com.

Looking for more great photography info?  Check out the This Week in Photography blog and podcast.



© 2008 Tim Soderholm

13 October 2008

Will photograph for food...

Aloha!

I’ve been kicking around the idea of starting a blog for some time, but, until now, I’ve just never pulled the trigger.  Every now and again the idea would find its way into my mind; each time, it was immediately followed by this pesky fact: I just don’t have anything interesting to say.

Then I came to the realization that if “interestingness” was a prerequisite for starting a blog, 99% of the blogs that now pollute the "internets" would never have gotten past the idea stage.  Couple that fact with the completely self-serving desire to drive more traffic to my photography business’s site (http://www.lokahiphoto.com/), and here we are!

For me, photography started as an off-and-on hobby.  The technical side of photography appeals to my predominant “left-brained” nature, and it provide me the artistic outlet that I believe everyone needs (left-brained people probably more than most!).  Since I’m otherwise pretty much a talentless hack, you can see how photography captured my imagination and quickly became a passion.   And along with that passion naturally comes an insatiable need to acquire more photographic equipment.  Now, listen close, because I’m going to let you in on a dirty little secret about photography:  camera gear is expensive!  REALLY expensive!  Well, in addition to being a geek, one of my other character flaws is that I’m an unrepentant capitalist.  So I says to myself, “Self, some people out there sell pictures for money.  If you could do that, you could buy more camera gear, with which to take more pictures, to sell for more money, to buy more camera equipment…” And thus, Lokahi Photography was born!

Luckily, I happen to live in one of the most photogenic locations on the planet, the beautiful Hawaiian Islands.  A poorly trained monkey with a camera could produce some stunning images here; I’m only slightly less capable than a monkey, but I think I’ve got a few winners, so please take a look at my work.  If you like what you see, leave a comment; if you really like what you see, buy a print (or several)!  

Looking for more great photography info?  Check out the This Week in Photography blog and podcast.