Skip to main content

Texture elimination from scanned photo

Recently I needed to scan quite old photography that was aimed to be published in one local newspaper. I wanted the best quality with dpi around 300. Unfortunately it had this very old-fashioned texture on the top that makes it difficult to scan it properly. The texture will be still there and ruin the result quality.

After some googling about moiré patterns and fast fourier transforms (FFT, it is also used in MRI) I found this very helpful discussion:
http://photo.stackexchange.com/questions/23445/what-is-the-best-way-to-remove-texture-from-a-scanned-textured-photo-paper
- especially the point about FFT.

Here is the technique with FFT:

  1. Download the ImageJ software
  2. Select the part of the image with pattern (e.g. somewhere in the corner). The idea is to see just the pattern.
  3. Apply FFT on the selected image pattern and notice how does it look like in the frequency space.
  4. Apply FFT on the whole image and find the pattern that was present on the selected image after FFT.
  5. Using paintbrush paint the pattern with black color. Do not paint the center.
  6. Apply inverse FFT.

Here is my example:



There is another interesting technique where you scan the image twice with rotation of the second scan about 180°. Then align the images. I didn't use this because the FFT method was much more interesting for me. I would use it probably if I couldn't find the clearly defined pattern in the image (e.g. no clear background).


Comments

Popular posts from this blog

Yamaha S08 - sticky keys repair

My keyboard Yamaha S08  suffered from several "sticky keys" disease already a year, perhaps more. That saying, I am pretty bad piano player. However, I like to have my devices fully functional for any cases. I have found a very helpful guide , but with no photos. I made some for better visualization of the repair. First, I unfastened all screws from both sides: Second, I unfastened all screws from a wooden base plate which were holding the part with electronics. Then I unfastened the golden screws holding the whole keyboard to the wood. The keyboard was now accessible from both sides. The last step is described in the following video. It was just removing the sticky keys and reinserting them without a metal spring coming inside. The end of the metal spring has been left outside of the key: So far it works well!

Windows 7 RC Ultimate on HP Compaq nx6110

I have never tried Vista on my laptop, because it is well suited for WinXP and I don't like Vista. But what if you can download the new Win 7 RC for free? I'm using Windows XP since I have bought my old laptop HP Compaq nx6110 (1,4 Ghz Celeron M, 768 MB RAM). WinXP runs on this laptop really fast and smoothly, but I have turned every "eyecandy" off and it looks like old Win95 now. But I like this neutral look. Last week I was closed in my room for two days installing and trying different Linux distributions. After this time I ended with Arch Linux installed on my hard drive - system was stable and either WiFi worked well. Then I realized, that I have spent so much time and done nothing useful. So I decided to work with WinXP and don't bother with other OS (like 2 weeks with Mac OS X a month ago). But NO. Incidentally I got to this website and started immediately download the iso image. The download process ran in Java and I had download speed about 800 KB/s, tha

Our Wedding

“When you realize you want to spend the rest of your life with somebody, you want the rest of your life to start as soon as possible.”  When Harry Met Sally... (1989) In the midst of a global pandemic, when the future was so uncertain, we knew that it wouldn’t be a traditional wedding.  Our wedding planning all started months ago in our small Upper West Side studio apartment. We began planning our wedding together the day after we got engaged (but if you know anything about Mia, you would know that she had really been planning her wedding day since she was a little girl). Without all the answers and with a lot of moments of “wait..., what!?”, we began planning the day that would mark the beginning of our lives together. And like in the movie quote, we both agreed that we wanted that day to start as soon as possible, before the situation with COVID-19 in New York, and in the world, got worse. Truth be told, the process was anything other than what we expected wedding planning would look