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

First Hawaii, then Oregon

Why? Hawaii - the international conference on MR (ISMRM) happened to be in Honolulu in 2017. Oregon - to counterbalance volcanic islands with sunny beaches and volcanic mountain with snow.

Part One: No Glamping in Hawaiian Islands

Island One: Kauai



After comfy 24-hour economy flights with Eva and Fabian, and just as I started to watch Moana, we landed in Lihue (Kauai). I assembled with Pedro, we took a rental car and quickly found our room in cosy Kauai Palms Hotel. For lunch next day we met Andrea in Kapaa and together we headed to see Wailua Falls, not far from Lihue. We left Andrea in Kapaa later that day and for our next night we were going to camp at Koke'e State Park Campground (thanks Evka for help with fixing my tent!). The night was very cold, roosters were loud and views from Kalalau Lookout were astonishing! It was time to warm up and see some beach so we decided to get a nice cup of coffee and visit a beach with restricted access for rental cars - Barking Sands Beach in 

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, that…

Additional RAM to iMac and installation of some software and games

RAM upgrade

After Mac OS 9 updates I started to use this system. But after a short while I realized that I really need more RAM. It was almost impossible to work with more than one application. Therefore I was decided to buy 512 MB RAM.

I knew about one small shop with old computers on Favoritenstrasse (U6: between Taubstummengasse and Südtiroler Platz). I went there and asked about SDRAM PC100. Old but nice guy showed me some 512 MB modules for about 30 €. I didn't have so much money with me at that moment and I also wanted to visit that Mac shop once more. So I left the shop and forgot my umbrella there.

That Mac shop offered me the same kind of RAM for about 45-50 €. Hmm, .... No thanks. I went to my room and picked some money from bankomat. I returned to the computer shop and the seller offered me (except my umbrella - for free of course) one module for 24 €. It has not been tested yet. I have bought it and put in my iMac - and nothing happened. Bad, but I had to go to the school…