+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Guest

    Succesfully removing banding

    I get frustrated when I upload Photoshop's jpeg files to the internet to discover a lot of ?banding? in areas that contain a lot of gradients, like for example a large blue sky. This problem is still one that amazes me, because even if these files look ok in Photoshop or ACDsee, they still show banding when you look at them in a web-browser. This banding problem is not noticeable when the viewer of this webpage is using 32 bit colors. I wanted to find a solution where the same file can be viewed without too much loss in quality, independently if the user is using 16 or 32 bit colors.
    Anyway, after reading some articles dealing with this problem it became clear that the best way to solve this problem was by adding some slight noise to the affected areas. Although my problems went away by using a small value of 1, I wasn?t satisfied with the visible noise that was introduced. What nobody really seemed to mention in all these articles, was the idea to add noise to a channel, an idea I was thinking about after reading an article about an old KPT 3 filter, called ?Hue Protected Noise?.
    In my case I selecting the red channel of the blue sky and adding a noise value of 3 (yes, even 3 times higher than the original 1 for the RGB layer) really solved my problem. It's now very hard to notice any noise, even by pressing undo/redo a couple of times. The effects in the final jpeg are also really astonishing! I experimented with several other colored gradients in combination with different channels and I achieved very good results!


    I have included two files to show you the difference.

    REMARK! Look at these files with a 16 bit color setting for your graphics card.

    You might need to refresh your web-page after you've done that.

  2. #2
    Guest

    Corrected version

    By adding noise to red channel

  3. #3
    sfm
    sfm is offline
    Guru
    Join Date
    Feb 2002
    Posts
    1,174
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Succesfully removing banding

    wow that is great Gaussian....... for so long I have been crying out how to get rid of the banding without adjusting my video card looks to me like you found a way

    I wouldn't have believed it if I hadn't seen it with my own two eyes

    well done infact double and tripple well done!
    sfm

  4. #4
    Guru
    Join Date
    Feb 2002
    Location
    Kelowna, BC Canada
    Posts
    2,256
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Succesfully removing banding

    Great thread Gauss, well done.

    Make sure you also try applying the noise to the other channels as well. And try using both types of noise -- uniform & gaussian. See what happens to the image/photo in each case.

    Good stuff.

  5. #5
    Guru
    Join Date
    Feb 2002
    Posts
    1,534
    Thanks
    0
    Thanked 1 Time in 1 Post

    Succesfully removing banding

    Me too I appreciate it a lot. Just like most damage in an old photograph can usually be found in the blue channel...

    Still, I don't like to manipulate the original material like that. Agreed that you win (less banding) but you also lose because you're stuck with noise everywhere, even where it is not necessary. I suppose that a selective mask, style edge mask must be good to ameliorate this technique.
    Let's think about this and come up with a real super solution.

    Problem: how can we make a selection/mask that allows us to apply noise only to the banding area's?[:I

  6. #6
    Guest

    Succesfully removing banding

    Sorry, but I absolutely don't agree with you on this one Erik.
    This gradient problem has frustrated me for a long time and every time I kept reading or hearing that adding noise is the only good way to go, except those suggestions focused on the RGB channel only and not on one or more particular color channels. Sometimes it?s better to work with an acceptable solution then to search a lifetime for that golden egg and I went on a very extensive search in the Photoshop community and never found anything that comes even close to that golden egg.
    You have to understand Erik, this technique is focused on WEB graphics and a lot of web designers will be quite happy to get rid of banding even if noise is added, especially knowing that it?s almost impossible to notice, even by doing a continuous undo/redo of the effect in Photoshop.Also, the noise is never added and then saved in the original file, so the original always stays intact.
    All the graphics shown on the internet are for viewing purposes only. Every original camera TIFF shot I make is always archived and never touched. I always do my retouching on duplicates. This banding problem is only visible in files viewed on the internet, never in the original. Even if I have a banding problem, it will only really show up if I use ?save for web? and look at the preview window.
    I agree it?s always advisable to create a mask first and that?s what I forgot to mention in my first post. Banding is particular visible in large areas that contain gradients of the same color, so in general there will be more cases that it does work rather then that it?s unusable. Create for example a circular rainbow gradient in a 200*200 pixels square and then create the same square and fill it with a circular gradient going from white to any color. You won?t notice any banding in the first example, but you will in the second one, but not so much in the original file but rather in the web preview.
    If everyone who browses the internet is using 32 bit color, then most of our banding problems would be history, but since that?s not the case, this seems to be good solution for this particular problem and until now I have found only one serious drawback; the file size increases, but I guess that's the general story with web graphics, it's give and take.

  7. #7
    Guru
    Join Date
    Feb 2002
    Posts
    1,534
    Thanks
    0
    Thanked 1 Time in 1 Post

    Succesfully removing banding

    You are right, Gaussian. It was not my intention to minimise this method to get rid of banding, far from that. But I was not talking about CMYK here. In the link to Margulis' article I was, but only because Margulis himself and the whole article is about CMYK problems.

    My idea about the mask is sheer creativity, nothing else. I only learn new things by attacking problems like this. That is one of the advantages of this modsquad thing Mark invented: I have to try to find solutions for problems I can't foresee, so I need to enlarge my knowledge every time.
    OK, I did try to "kindle the fire" to get some other people brainstorming with me. But if no one is interested, I'll search for myself. The idea was, in fact, to use some kind of edge mask, like I also use for Unsharp Masking because there's no use to sharpen soft areas and losing hues when it's only the edges that need sharpening. I did not read that you were talking about gifs. I must have overread this. For the web there is indeed no problem as monitors are generally not calibrated and display colours in awful ways. (even monitors of so-called webdesigners.) Indeed, to get rid of banding here can be done by adding noise to a colour channel.

  8. #8
    Guest

    Succesfully removing banding

    Good luck with your golden egg Erik

  9. #9
    Guru
    Join Date
    Feb 2002
    Location
    Kelowna, BC Canada
    Posts
    2,256
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Succesfully removing banding

    Good points guys, each of you.

    But as for the "golden egg" thingy... perhaps give this idea a shot...

    -> Create a large circle of white.
    -> Fill it with noise. Then scale it down to a small size.
    -> Select the circle, and Feather the selection by about 1/3 it's size. Invert the selection and Delete. This'll give you a soft edged noise dot.
    -> Define it as a Pattern/Brush.
    -> Use a softedged Airbrush to apply the noise only to the problem areas of the image/photo. If you have a pressure sensitive tablet even better. And this can also be tweaked further with PS 7 and the new brush engine capabilities.

    See if that works for ya. ;)

  10. #10
    Guest

    Succesfully removing banding

    Nice one Mark, didn't think of that one

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.9
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0
Copyright 2011 Photoshop Gurus Forum. All rights reserved.
All times are GMT -5. The time now is 02:34 PM.
vBulletin Skins