Smoothing Large Blotches
I have a problem with some very indistinct blotchy discoloration in a clear sunset sky which has resisted my attempts at correction. The image is a 100 MB file so everything including these blotches, is very large in pixel terms. Using various blur techniques has not yielded good results primarily because of the large pixel dimensions of the blotches. I end up with waves of discoloration instead of blotches of discoloration. I can easily isolate the sky, and the best I've come up with is to resample down drastically, add Gaussian Blur, then resize back up with stair interpolation. But this yields some grid pixelization in the sky. Perhaps there's a better way? Here's a link to a small crop of the image: http://www.pbase.com/image/10142424/original
Scrolling the image or emphasizing with Levels will more clearly show the discoloration.
All suggestions are greatly appreciated.
Hi kthurner - and welcome to RetouchPRO!
My first thought when I adjusted the levels was - why don't you turn this into a painting? Just joking, but the blotchiness looks like one of the effects we try to get when we're turning a photo into an artistic rendition.
More seriously, when I looked at your image at 100% and severely adjusted the levels, the blotchiness looked like JPEG artifacting to me. At less than 100%, it looks like clouds or variations in the atmosphere, but you indicated that it was a clear sky. You also mentioned that this image is 100MB - which would indicate no JPEG compression (to me at least), so perhaps the JPEG artifacts are the result of compression for you to upload the image to pbase? Or was this image enlarged from the original?
Regardless of the cause, I can see the problem. Unfortunately, I don't know if any good way to resolve it. I tried Alian Skin Image Doctor JPEG Repair, but the result didn't seem to be much different than a simple Guassian blur. (That said, I'm not real familiar with Image Doctor, so perhaps I just don't know how to tweak it correctly).
I did try using a full strength (radius 100) Median blur (rather than Gaussian blur). This produced slightly less "transition lines" than the Gaussian blur. Then I added about 3% monochromatic uniform noise and faded it to about 40%. (Adding noise can significantly reduce the transition lines caused by strong blurring - but it does add a "grainy" look to the image.) I could then use the healing brush to clean up any further lines that I could still see. (For some reason, when I tried using the healing brush to clean up the transition lines, it didn't work at all - made the situation worse.)
Hope this helps,
I have not played with things, but a quick look at the webpage shows both the colour variation and the naked eye can see slightly visible grain or noise, which as mentioned may be due to jpeg issues.
Dupe layer, set to colour mode - apply large median and gaussian blur to merge the colour variation.
Dupe original layer and place over the top of others, set to luminosity and small smart blur or other methods as in these links:
Of course LAB mode edits produces similar results to the duped layers.
There seems to be luminance variation as well as colour - so the AB or colour blend heavy filtering may not do the whole job in this case.
It does look like compression noise. There are many threads here about various de-jpg-noisifiers, such as neatimage and Grain Surgery. I seem to recall one thread that had a link comparing a great number of them, but can't find it now.
Anyhow, it won't work on all images, but I had success with yours in going to each individual color channel and running a very slight dust/scratches filter. Whatever method you end up using, you'll find it enhanced by doing each channel separately, and to the minimum necessary for that channel. The blue channel is notoriously noisy, especially.
Shan Canfield observations (she got back to me via e-mail):
"As far as I can tell it looks like jpeg artifacts (but maybe it's the ozone!) Try blurring that particular sample's red channel directly at around amt 40, and the blue channels, amt 40. Then going back in Red Channel & Blue Channel and adding uniform monochrome noise less than 1, seemed to improve it.
Interesting thought... work on the individual color channels vs. all at once through vanilla Gblur.
Thanks for all your replies. Let me give you more background into the image. It is true that I had to post a jpg rather than the original tiff format to get the image on pbase. The visual effects however are not jpg artifacts. This image has already been through Neat Image (much attention paid for optimal results) and some Curves, Hue/Saturation adjustments. The blotches are a fairly common result of using Neat Image on very old and noisy Kodachromes that have gradual color gradients.
The separate channel approach as well as adding noise has given me more things to try. However, my initial attempts on separate channels still fall far short of my interpolation solution. Applying Blur to this image at original size always results in distinct waves of discoloration for me.
Thanks for your help, and keep the suggestions coming!
There isn't a grain removal-type filter I'm aware of that can quite fix this sample. Grain removal filters will just move things here and there and not smooth out blotches like this.
If you look at the channels after a levels adjustment you'll see the green channel is by far the worst, with almost nothing left of it.
As an experiment I took the picture to the extreme.
If you take a look at the picture attached the left panel shows the green channel after levels and it's histogram, which shows there's very little useful digital information left. The centre panel shows the orginal image after levels and it's histogram. The third panel is the image after each channel was blurred to the max, and it's histogram (which is an improvement), but the picture is now nothing but a gradient, not resembling a sky.
The bottom line is you can't improve the whole picture via levels/curves without making it appear worse to the eye, even though it would be "better".
Your instints have been good so far though, and as others have suggested, using noise will help with any banding you end up with as a result of your experiments. Strangely, your best bet might be to camouflage the blotches by doing nothing.
out of curiosity, if you could, please post a sample of the whole picture.
So it sounds like NeatImage is casing the problems.
Try filtering the colour component first.
Then run Neat in this section, or perhaps other methods as indicated in my grain links listed earlier.
Directly blurring the individual channels is a poor option when it is the first thing you try.
It is much better to indirectly filter via a layer set to colour blend or the AB of LAB.
Then, if there are remaining issues in the RGB channels, then direct filtering can be used.
Indirect filtering is easy, free and will affect all the channels at once. Unlike direct filtering it does not destroy detail and it can clean up individual channels like magic.
The only solution I found still left a bit of wave, but not as bad.
I duplicated the layer.
On the top layer, I did a motion blur, straight horizontal.
On the bottom layer, I did a motion blur, straight vertical
I set the layer blend opacity to 50%.
Many thanks to all for your ideas. After much experimentation incorporating various of your suggestions I have come to the conclusion that a variation on my original solution is still yielding the best (though imperfect) results in this particular image. I am still open to new ideas. My current solution is as follows:
1. Create Alpha Channel of Sky (problem area)
2. Duplicate Image
3. Flatten copy of Image
4. Duplicate Layer, apply sky Alpha Channel, inverse selection, clear
5. Resample unconstrained from 5250ppi to 300ppi
6. Add Gaussian Blur 2.0
7. Resample unconstrained in steps (600ppi, 1200ppi, 2400ppi, 4800ppi, 5250ppi) (Check to make sure pixel dimensions are same as original file; they should be and were in my case)
8. Drag sky Layer from the resampled copy file to the original file
9. Apply sky Alpha Channel to sky layer, inverse selection, clear.
10. Set sky Layer opacity to 80%
I was at an advantage by having the whole image to study in my tests. The crux of the problem was in the pixel dimensions of the blotchiness, this is why I had to post a crop of the image at original size to portray the problem accurately. For those curious, here's a thumbnail of the whole image. Thanks again.
Last edited by kthurner; 01-06-2003 at 04:41 PM.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Are large files bad for hard drives?||Doug Nelson||Hardware||11||06-12-2007 09:46 AM|
|Taking Large Format Pictures...||New2TheGame||Photography||1||01-13-2007 05:13 PM|
|Very large Images||Richard Ellis||Photo Restoration||13||03-17-2006 07:28 AM|
|Removing Yellow Blotches in Restoration||Foxkatt||Photo Restoration||5||01-22-2006 08:51 PM|
|Small vs. Large File Size For Restorations||Doug Nelson||Photo Restoration||8||04-29-2002 09:02 AM|