Search This Blog by Google

Search This Blog

Welcome to Dijemeric Visualizations

Where photography and mathematics intersect with some photography, some math, some math of photography, and an occasional tutorial.

Total Pageviews

Showing posts with label digital noise. Show all posts
Showing posts with label digital noise. Show all posts

Saturday, March 24, 2012

Digital Noise and Photography

Digital Noise and Photography
Ken Osborn © 2012

Want perfect photos?  Not possible.  Why?  Well, even the most proficient photographer with the most perfect equipment must contend with noise in the image.  It does not matter whether the image has a full tonal range from  highlights to shadows, is low in contrast, is shot with low ISO or high ISO.  There will always be noise.

The more important question is how do we get acceptable control of noise in our images?  For starters, use a low ISO setting.  This will depend on available light, lens speed, motion in the subject, and whether you are using a tripod.  If, for example, you are shooting a dance scene under low light without a flash and no tripod, you will probably have to use a fairly high ISO.  Accept the inevitable noise.  If you are shooting a landscape with the camera on a tripod, then you can use a very low ISO.  There will be considerably less noise, but it will still be there.

Figure 1 shows Steps 2 and 14 from a Kodak Gray Scale.  The photograph was shot with a Pentax K5 at ISO 100.  The extreme pixel values of each histogram for Steps 2 and 14 were used to create smaller boxes that were then inserted into the corresponding Gray Scale images.


Figure 1  Kodak Gray Scale Noise Comparison

Can you count the number of small boxes in the Kodak Gray Step 2 ISO 100 image?  Including the box in the lower right with the black outline, you should see a total of 6.  Now count the boxes in the Kodak Gray Step 14 ISO 100 image.  Including the box in the lower left with the white outline, you should see a total of seven.  You don't see them?  Look at figure 2 then, which is the same as Figure 1 but with the exposure increased in Photoshop.  

Figure 2  Kodak Gray Scale Images Plus 2EV


So even at ISO 100, there is noise.  Also, the noise is equally important in both the highlights and the shadows.  In this particular instance, it appears that the noise impacts the highlights even more than it impacts the shadows.  Another lesson is that when you open the shadows, the noise becomes more noticeable.  Could that also be true for the highlights?  If you make them darker, could the noise become more troublesome?  Look at Figure 3.

Figure 3  Kodak Gray Scale Images Minus 2EV


The small boxes now stand out a bit more and the background is even more mottled than in Figure 1.  Lightening the shadows and darkening the highlights will accentuate the noise.  

Figure 4 is an animation showing what happens when the shadows are 'opened' by increasing the exposure in curves and the highlights are darkened by decreasing the exposure.  If the individual slides were not captioned, could you tell which of the 'auto curves' slides was for the highlights and which was for the shadows?  

I'll end this post with the observation that digital noise is not necessarily all that bad.  At one time Tri-X film was considered a last resort for the desperate and today we look at those old photos with lots of grain as art!  So maybe we shouldn't call it noise but call it digital grain.  

Credit line: the histograms used in generating the animation were produced using ImageJ from http://imagejdocu.tudor.lu/.  It is public domain software and is a powerful tool for the analytical dissection of digital images.  

Sunday, April 11, 2010

Digital Noise and Photography

The Problem
Noise is not only a problem for getting good analytical results in the laboratory, but is an issue for the photographer.  In my previous three blogs I presented a theoretical basis for dealing with analytical noise that applies to any measurement process including photography.  For the photographer, digital noise is most bothersome in the shadow details.  This is because there is less digital information in the shadows than the mid-tones and highlights.  Less light means fewer photons, fewer photons mean fewer pixels, and fewer pixels is less digital information.  Increasing the sensitivity to boost the signal for low light does not solve the problem, it just increases the noise.

[If you missed the earlier blogs that covered basic theory, don't panic.  You can still read them starting with What is Detection and What Does it Mean for Photography. ]

An Approach from the Lab
In earlier blogs I have noted that while an individual measurement near the detection limit has limited value because of the large associated error (i.e., noise is large relative to the measurement), in the context of a data set a collection of measurements has statistical utility even when all of the measurements are near or even below detection.  That is because the errors, which are random in nature, average out.  The same is true in photography.  Consider that each pixel in your image is the consequence of photons striking the sensor.  But sometimes the sensor will create more than one pixel for an in-coming photon and sometimes it will create no pixels for in-coming photons.  This is a random process, meaning that sometimes the effect will be positive and sometimes negative.  If you can average enough random events in a series of nearly identical events, the random noise will be averaged out and canceled.

An Example
Consider the following photograph titled It's Really Very Underexposed!  The only visible detail is in the sky, where the highlights are.  For this shot near sundown, I exposed it so that the highlights in the sky would not be blown and set the f/stop to maximize depth-of-field.  (Note a double-click on any of the images will open it at a larger resolution.)




It's Really Very Underexposed!  


The problem is that the shadow areas have dramatically less light than the sky and so are totally blocked up (i.e., very few photons).  We might conclude that there is nothing of value in the shadows, but to make sure I applied a curves adjustment to get Curves Adjusted to Open Shadows.



Curves Adjusted to Open Shadows

So now it should be obvious that there was light in the shadow areas, but not very much.  As a consequence, just like measurements in the lab, when the measurement is near the limit of detection, there is a lot of noise that makes accurate results difficult - but not impossible.  See the next image as a crop of the one above to convince yourself that there is a lot of noise in this version (mouse-click the image for a larger more viewable version). 



Crop of Curves Adjusted to Open Shadows


So how do you get rid of the noise?