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:
- 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).


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 

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!

Inspiring music in Casey Neistat's vlogs

After watching a few vlogs by Casey Neistat on Youtube, I couldn't help notice the well-chosen music in the background. Particularly music by one artist named Julian Avila. Here is his music:
Inspired, I took several months old videos I shot on GoPro Hero 2 when I was biking to Kahlenberg in the rain. After a few hours and two whiskeys, this came from my computer: