Slashdot Mirror


Open Source Image De-Noising

GREYCstoration is an open-source tool able to de-noise, inpaint, or resize 2D color images. This is a command-line program developed by the IMAGE team of the GREYC Lab in France and is available for Unix, Mac, and Windows systems under the CeCILL license. The algorithm is based on anisotropic diffusion partial differential equations. These equations are able to smooth an image while preserving its main structures. The demo page presents interesting examples of color image de-noising and reconstruction. This is a serious free alternative to commercial products like Noise Ninja or Neat Image that perform the same kinds of operations. The tool is still a little bit hard to use (command-line based), but I hope the simple C++ API will ease the integration of the algorithm in more user-friendly interfaces. Previous versions of GREYCstoration are already available in Digikam and Krita.

21 of 205 comments (clear)

  1. The real question is... by Wizarth · · Score: 3, Interesting

    Can it remove the noise commonly used in CAPTCHA images? Will this be the next weapon in the war against spammers?

    1. Re:The real question is... by kbielefe · · Score: 3, Insightful

      Sounds like this weapon is FOR spammers.

      Usually in wars people on both sides have weapons. Otherwise the war doesn't last very long.

      --
      This space intentionally left blank.
  2. Picture Cooler by DrDitto · · Score: 4, Informative

    Another great free tool is called Picture Cooler. It rivals or exceeds Noise Ninja for certain images. Download it here: http://denoiser.shorturl.com/

    But if you want images with less noise, try and buy a camera with a larger sensor. dSLR's have large sensors as do many Fuji cameras including their tiny P&S models. Most sensors on subcompact P&S cameras measure only 5.76x4.29mm (1/2.5"). Many of the smaller cameras by Fuji use a 1/1.8" sensor that measures 7.18x5.32mm.

    A nice explanation of noise and sensor size is here: http://www.clarkvision.com/imagedetail/does.pixel. size.matter/

  3. Artificial noises by biocute · · Score: 5, Interesting

    It seems to perform a lot better when dealing with artificially-added noises than real-life images, as if it already knows how to tackle them.

    This pyramid photo has basically been 'ruined' after the denoising, I wonder if we added some synthetic noises in the background while leaving the stone face as is, would this app be able to denoise correctly?

  4. Does it work on 12 or 16 bits/channel images? by kcbrown · · Score: 5, Informative

    This tool looks very cool, but today's semi-pro and pro (and even some consumer grade) cameras will store their images in a raw format which preserves 12 bits per color channel at a minimum.

    GIMP can't deal with these. Tools such as ufraw can convert them to 8 bits/channel images such as JPEG but don't allow you to actually manipulate the image in its native color resolution.

    Linux seriously needs a good image manipulation tool such as the GIMP with 16-bit or even 32-bit per color channel support built-in. This is particularly important for operations like sharpening.

    Cinepaint will do it but it's way behind in features compared with GIMP these days.

    What's the hold up with GIMP anyway? You'd think its developers would take this kind of issue seriously and would fix the engine to natively do, say, 32 bits per color channel internally.

    --
    Use 'slashdot stuff' in the subject line in any email you send me if you want to get past the spam filter.
  5. Anisotropic diffusion by ceoyoyo · · Score: 4, Informative

    is a pretty good algorithm. We use it for MRI images. The biggest problem is setting the parameters. Fortunately it's an embarrassingly parallel algorithm so I wrote a version that will run realtime on a video card. It's pretty cool to move the slider and watch the noise fade away, move it further and some of the edges blur, further and you start to lose the image.

  6. Re:Color me impressed! by FredThompson · · Score: 4, Insightful

    "The demo images are more than a little impressive."

    I disagree. They are overly smoothed and detail is destroyed. They look like the type of thing a noob makes upon discovering video filters. For example, look at the delicate features in the jellyfish or the pig's hair. This samples look more like demonstrations of soften or posterization filters. They should also use real, not artificial, noise.

  7. Same effect by rez_rat · · Score: 5, Funny

    by taking off my glasses!!

  8. Re:No more ISO 80? by drgonzo59 · · Score: 4, Informative
    Keep shooting at ISO 80. De-noising will not add details, it will hide the noise pixeles with uniform colors but it will only guess. The only way to fill in those pixels with correct information is to shoot the scene at the correct ISO setting.

    The lower ISO you can get the more detail you could capture given that other parameters are fixed. Have you ever shot with Velvia ISO 50 film? -- it creates stunning details. I think Fujifilm discontinued it last year or so. In film the lower the ISO the finer the grain. As far as digital is concerned think of ISO as sensitivity of the CCD. You can turn the gain up to ISO 3200 but you will amplify a lot of noise too.

  9. All right, slashdotters.... by gardyloo · · Score: 4, Funny

    ... after those results, I don't want to hear any more bitching about reading yellow license plate numbers off of the reflection of a doorknob reflected in a one-pixel wide eyeball in a black and white security film shown in CSI!

    1. Re:All right, slashdotters.... by MadAhab · · Score: 3, Funny

      Really? They shouldn't be complaining.

      Greg Brady did this kind of stuff 30 years ago - when he was in a high school photography class!

      --
      Expanding a vast wasteland since 1996.
  10. I don't see what the point is by iPaul · · Score: 5, Funny

    I keep pressing my ear to my computer, but the pictures don't make any noise. They're actually pretty quiet.

    --
    Leave the gun, take the cannoli -- Clemenza, The Godfather
  11. Image reconstruction with resynthesizer by tjwhaynes · · Score: 5, Informative
    Another tool which can be used to remove objects from pictures is Resynthesizer. I've used this to remove overhead wires from photos, create more sky for a panorama and clean up dust spots of scans successfully.

    It can also take one image and repaint it in the style of another image, so you can take a black and white photo and a pencil sketch as inputs and end up with your photo rendered using parts of the pencil image which are similar in form.

    Another trick it can pull is creating tileable textures from any image. Sometimes the results are a little surprising if you start off with a picture of people at a party but they are totally seamless.

    It comes as a GIMP plugin and is easy to use if you are used to the GIMP.

    --
    Anything I post is strictly my own thoughts and doesn't necessarily have anything to do with the opinions of IBM.
  12. Re:Photoshop Gets The Job Done by Paradigm_Complex · · Score: 3, Informative

    TFS: "GREYCstoration is an open-source tool"

    --
    "A witty saying proves nothing." - Voltaire
  13. Responses by lorcha · · Score: 3, Informative

    If you're experiencing a lot of noise at ISO400, it's time for a new camera.

    Also, in response to your later post, what many DSLRs do for long exposures (usually taken at night and with high ISO and experience a lot of noise in the black areas) is to take another exposure immediately after the first one, but with the shutter closed. Then, the camera knows where the sensor noise is and can subtract it from the actual picture.

    So if you take an 8 sec. exposure and your camera freezes up for the following 8 sec, you'll know why.

    --
    "Avoid employing unlucky people - throw half of the pile of CVs in the bin without reading them." -- David Brent
  14. Re:No more ISO 80? by Anonymous Coward · · Score: 3, Informative

    In fact, there already exists software for that purpose: ALE. And it is open-source too!

  15. He did use real noise. by twitter · · Score: 3, Informative

    They should also use real, not artificial, noise.

    Check out very impressive clean up of a PDA camera. That's good. Ordinary smoothing filters blur important details, like those in the watch or the baby's ear. How nice that it is already in Digikam, one of the easiest to use photo managers out there.

    --

    Friends don't help friends install M$ junk.

    1. Re:He did use real noise. by szap · · Score: 3, Interesting

      I'm more impressed, if it's real, of the removal of the cage from the caged parrot photo: http://www.greyc.ensicaen.fr/~dtschump/greycstorat ion/img/res_zoobird.png

      Similar, but less so: http://www.greyc.ensicaen.fr/~dtschump/greycstorat ion/img/res_parrot.png

    2. Re:He did use real noise. by fbjon · · Score: 3, Informative
      I'm not the one you challenged, but I took it anyway: Neat Image (left) vs. GREYCstoration

      Note especially the better details in the baby's collar, and faint wisps of hair on the right forehead, which are distorted or gone in the GREYCstoration. Note also the colored noise which is completely removed by Neat Image. In short: better details throughout.

      This is not to say that GREYC can't do better, though. That depends on how much it can be tweaked.

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
  16. Re:Oh yeah, baby. You the PRO! by badasscat · · Score: 4, Insightful

    Sure, he's a noob. That DT-MRI of gray matter paths in your brain based on diffusion tensors is purely the stuff of rank amateurs!

    Being a research scientist doesn't necessarily qualify someone as having a photographer's eye. Nobody's saying the guy couldn't research circles around any of us. What the parent poster said is his de-noise filter is way too aggressive and obscures image detail. That appears to be true, at least judging by the settings he's using for his demo shots.

    Sufficiently advanced noise is indistinguishable from the stuff that comes out of a cheap imaging device

    Not really true, because the noise that comes out of any imaging device (cheap or otherwise) is not random. It fits a particular profile that's unique to that model of device, or even that particular unit. Advanced photo filtering algorithms (including those used in the in-camera processors that convert raw image data to jpg image files) use that individual profile to filter noise. They're not trying to figure out what's noise and what isn't on the fly, which is at best an imperfect science, and that's being charitable. They have a good idea before they even look at an image what the noise is going to look like, so they do a better job of removing it without sacrificing detail.

    The more advanced filters like NeatImage are also almost infinitely configurable in what noise they go after and where, and how aggressive they are. Now, this guy's algorithm seems to be pretty configurable as well, so maybe he just didn't use very good settings himself on most of his image demos, and the algorithm is actually capable of better results. He does seem like he's a better scientist than image-maker so that's entirely possible.

    It would be interesting to see what could be done with this if it was given an intuitive GUI and put in the hands of some real photographers. (Yes, even real photographers have to shoot at ISO 800 and above occasionally, and would benefit from noise reduction that actually works without sacrificing detail.)

  17. Re:No more ISO 80? by StressedEd · · Score: 3, Informative

    I keep telling her to switch completely to digital and she tells me I don't know what I am talking about, she is probably right...

    I too have a fridge full of film (Velvia, Astia, Provia), however I accept that I'm a dinosaur and proud of it! Modern digital SLRs perform better than 35mm film in practically every respect and challenge medium format in quality. Only with large format is that not true - and large format is something of a niche! Soon of course even this will bow to the digital revolution.

    I suspect she's like me, stuck in the past and quite happy to stay there for the time being! There's still something magical about transparency film. The colour reproduction is very special, with a gamut wider than you can sense in either prints or monitors. Although the gamut of modern digital sensors is just as good, there's no way of actually sensing it, as the display devices aren't up to snuff! Wide gamuts make an enormous difference to an image. The colors you see in nature are far more diverse than those that can be reproduced in print or on a computer screen. It's only by actually seeing these things first hand that one can appreciate the difference, prints look strangely grey an lifeless in comparison.

    Ah, transparency film!

    I'll stop evangelising now - I'm probably preaching to the converted anyway!

    --
    Be nice to people on the way up. You will meet them again on your way down!