Sucking out the atmosphere
Dec. 22nd, 2008 10:24 pmThe view from an aircraft is incredible, but the atmospheric haze even on clear days dramatically reduces the contrast. However, I realized that, mathematically speaking, the haze is adding a constant amount of light to each pixel of the image. (The blue haze that occurs in absence of air pollution or atmospheric particulate matter comes primarily from Rayleigh scattering. Rayleigh scattering is also the answer to the childhood question "Why is the sky blue?) I can estimate the color value of this haze by finding a particularly dark part of the image and assuming that the actual object there is black. Then, I can subtract that value from every pixel. The results are dramatic:
Before:

After:

More pairings:
Bay bridge construction:


A reservoir:


Some hills:


If I really want to do this right, I should take multiple black samples to account for the fact that there is a greater distance (and thus more haze) in the top parts of the photo than there is at the bottom. Then I can make a gradient in Photoshop between the two values.
Before:

After:

More pairings:
Bay bridge construction:


A reservoir:


Some hills:


If I really want to do this right, I should take multiple black samples to account for the fact that there is a greater distance (and thus more haze) in the top parts of the photo than there is at the bottom. Then I can make a gradient in Photoshop between the two values.
no subject
Date: 2008-12-23 07:01 am (UTC)no subject
Date: 2008-12-23 08:49 am (UTC)no subject
Date: 2008-12-23 09:30 am (UTC)no subject
Date: 2008-12-23 09:47 am (UTC)That works better in the first two pictures than the others, I think.
no subject
Date: 2008-12-23 04:09 pm (UTC)see here
no subject
Date: 2008-12-23 07:34 pm (UTC)no subject
Date: 2008-12-23 07:36 pm (UTC)I tend to do a lot of levels adjustment on the shadow end to fix contrast problems, whether due to windshields, airplane windows, or the lens itself losing contrast.
no subject
Date: 2008-12-23 06:45 pm (UTC)no subject
Date: 2008-12-23 07:34 pm (UTC)no subject
Date: 2008-12-23 07:38 pm (UTC)there's some nighttime air photos here. In general, my air travel tag contains what one expects. :)
no subject
Date: 2008-12-23 09:10 pm (UTC)Just generally curious... :)
no subject
Date: 2008-12-23 11:07 pm (UTC)no subject
Date: 2008-12-23 10:38 pm (UTC)Any chance you're going to post those kayak photos soon?
no subject
Date: 2008-12-24 06:48 am (UTC)Here you go:
http://www.flickr.com/photos/9055206@N06/tags/olympia/
no subject
Date: 2008-12-23 11:08 pm (UTC)2 geeky cents
Date: 2008-12-29 09:22 am (UTC)Some of the light sensed by the camera came from the object you're taking a picture of, while some came from skylight, that is, light from the the sun, scattered by the air into the path of the camera, making it brighter by an additive factor. This is what you've already corrected.
Also, some of the light that otherwise would have made it to the camera is scattered out of the path of the camera, so the picture becomes darker by a multiplicative factor.
Both of these are different for each color channel, and are not actually constant over the image, but as you guessed are directly proportional to distance.
If you want to really really geek out, check out:
http://www1.cs.columbia.edu/CAVE/projects/vision_fog/
I hope your travel plans are progressing. I'm spending some downtime chilling out for the next couple days before the next roadtrip :)
Re: 2 geeky cents
Date: 2009-01-02 04:39 am (UTC)