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

iMac G3: Mac OS X 10.4.11

So my goal to install Mac OS X Tiger has come true. Firstly I needed Tiger on CD's and that was a big problem because you can buy Tiger mostly on DVD although there are also some CD versions but very expensive. But I was lucky because friend of my friend, Neuromanc, lent me this very rare 4-CD version. So thanks again :-). My iMac is not officially supported because it has no FireWire. But you can override this with software XPostFacto . I downloaded and installed the latest version so I could use it with Mac OS X 10.3 (the previous versions worked only with OS 9). I erased HDD entirely before the installation just to be sure. After first restart the installation continued from other CD's. The installation process took approximately one hour and ran without problem. After registration the update process started-up and took another hour or more. It was repeated several times ma inly due to Java updates. Then finally I could download software and this time the latest versions. I ...

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 w...

Thanksgiving in Auburn, upstate NY

Mia and I had hoped to spend our Thanksgiving with our families and friends, but this is 2020. First we were thinking about traveling South (e.g. Virginia), but the driving would be just too long for us. Then we thought about going North and we both agreed that the Finger Lakes region beckoned to be discovered by us. For this trip, Mia suggested bringing our road bikes and I just could not say no. We found a very affordable Airbnb in Auburn, upstate NY. Driving there was not that long (~4.5 hours) but because we were not in a hurry, we came to town in the evening - Thanksgiving evening. We naively thought that we could get dinner in town, so after we checked in our Airbnb, we drove downtown. Surprise, surprise - everything was closed. Luckily, Mia packed frozen gluten-free pizza, avocados, apples and other food so our Thanksgiving was saved! Our apartment had a stove, oven and microwave oven and we could prepare meals for the evening and for our whole stay in Auburn. Next day we chose ...