Fourier Transform Plug-in - get rid of "newsprint dots"

Found a useful program you'd like to share with others? Commercial announcements are fine, but please keep it brief.
-default
Posts: 1916
Joined: Thu Mar 26, 2015 1:53 am

Postby -default » Sun May 21, 2006 4:29 am

Today I discovered a free plugin that does Fourier Transforms, offered free of charge at a site specializing in forensic software.  This is a Windows plugin, and will work in both Photoshop and Photoshop Elements, as well as any other program supporting Photoshop plugins.

There are a number of interesting things you can do with this plugin, but one of the coolest is the removal of halftone dots and paper patterns from your images.  If you have not used Fourier transforms this way before, believe me this is light years away from simply blurring the image to get rid of the dots.

The plugin and documentation, including an example of removing halftone dots from a thumbprint image are here:

http://home.planet.nl/~ber03728/4N6site/improc/fftplugin/howto.htm
http://www.3d4x.ch/Swift's-Reality/FFT-Photoshop-plugin-by-Alex-Chirokov/16,35 (more recent link to same or similar plugin)

I will be providing my own example shortly, but I suggest that you download their thumbprint image, and walk through their example carefully.  You will be rewarded with a technique that will  be worth its weight in gold, next time you encounter a valuable image that is available only via a newspaper or magazine print, or a family portrait that is printed on textured paper.

A couple of hints about the demo.  When the diagonal banding is removed, note that this is done by removing the relatively subtle diagonal lines near the very center of the FFT pattern.  Removal of the halftone dots may be done by simply blacking out the center of each star-shaped pattern, rather than by usinig the clone tool as discussed in the howto.

Mike

mikemeister_admin
Posts: 4927
Joined: Fri Sep 20, 2013 8:29 pm

Postby mikemeister_admin » Sun May 21, 2006 8:49 am

Mike,

it looks nice to me!
But first , I must discover how to get Channels in P.S.E. 4.0.
The effect-plugins of hiddenpower  worked all with layers!

frits

mikemeister_admin
Posts: 4927
Joined: Fri Sep 20, 2013 8:29 pm

Postby mikemeister_admin » Tue May 23, 2006 3:45 pm

looks interesting
now i may be able to find a practical use for all that fourier theory i had to learn many years ago

-default
Posts: 1916
Joined: Thu Mar 26, 2015 1:53 am

Postby -default » Thu Jun 01, 2006 9:53 pm

Here is a halftoned image that I've cleaned up using the FFT plugin discussed at the beginning of this thread.  The process is as follows:

1) run the FFT plugin as discussed in the first article of this thread.
2) select the red channel in the channel palette
3) paint out all of the "stars", except the very center one.
4) select RGB in the channels palette, and run the inverse FFT plugin
5) no dots!

This is the only method of removing the dots that actually appears to reveal additional information in the image, instead of merely degrading it.  Although this is a black and white image, the same procedure works with color images with the following modification:  Duplicate the image to a new layer, and when you are done, set the mode of your "descreened" layer to luminosity to restore your color image.

Elements does not directly support editing individual channels.  See the next article in this thread for how to modify only the red channel using Elements.

Mike

-default
Posts: 1916
Joined: Thu Mar 26, 2015 1:53 am

Postby -default » Sat Jun 03, 2006 2:25 am

Here's a way to use the FFT plugiin with Elements.  This procedure uses a Levels adjustment layer to hide the green and blue channels, and a cyan multiply brush to erase only the red channel.




  • dupe the image

  • add a levels adjustment layer to the duplicate, and set the output levels to zero for the green and blue channels.  The image will appear red.

  • click on the background layer, and run FFT on the new image.  You'll see the characteristic star pattern in the red channel.

  • set the foreground color to cyan RGB(0,255,255)

  • set the brush mode to multiply

  • use the brush to black out the stars other than the center star

  • run inverse FFT

  • drag the modified image from the layer palette onto your original image

  • set the mode of the new layer to Luminance

  • run gaussian blur on your original image, with the radius set to about 2.0.





mikemeister_admin
Posts: 4927
Joined: Fri Sep 20, 2013 8:29 pm

Postby mikemeister_admin » Tue Jun 06, 2006 4:37 pm

Here's a way to use the FFT plug-in with Photoshop Elements ( X.0)

Readers,
for me I wrote earlier, that I could not use the FFT plug-in in Photoshop elements 4.0 ( P.S.E. 4.0)
That is right.
Perhaps my P.S.E 4.0 is a dutch version ?
I don't know.
But on the site :
http://home.planet.nl/~ber03728/4N6site/improc/fftplugin/howto.htm
there is spoken it could be used with P.S.E ( X.0)

But Mike Russell has developed a way how to use it also in P.S.E ( X.0)
But I have e-mailed with him several times  about the subject.
The end result was that I could use it on his way.
But the result was not satisfied.
So I thanked Mike for  his Support and did something else.
Suddenly I get a idea and it was a simple idea.
I have Hidden powers from Lynch ( that's special for P.S.E X.0) and I had tried  in the past several ways to a solution to try FFT.
But I tried the new idea and indeed, It succeeded.
It was also a little inspired By Mike's way to contribute to the solution.

So when you have Hidden powers from Lynch the solution to use FFT and IFFT is simple.
Yes all is simple, when you know it.

First get the demo1.jpg ( the thumb) om this page:
http://home.planet.nl/~ber03728/4N6site/improc/fftplugin/images/demo1.jpg
and load it in P.S.E ( X.0)
you see a small source or background in picture "00"
USE the FFT plug-in!
You get then what you see in picture "01"
You see the changed thumb  and thumb source and a part of the effects from Hidden Powers.
You must double click on the Red one the  RGB Sep(aration)
The result of the separation can you see in picture "02"
Then you must close all the eyes , except from the red-component.
See picture "03"
Make the foreground color in P.S.E ( X.0)  to cyan RGB(0,255,255-picture "04") in multiply mode
set the brush mode to multiply
( that I have learned from Mike: I have tried black and others ways but it must  be so)
Make the RED-Component the active layer.
Then strike over the stars on the way you see in the picture, with a brush in Cyan color.
use the brush to black out the stars other than the center star.
See picture "05".
After that set all eyes "ON"
You get picture "06".
After that you make "ONE" layer of them.
then comes the end: Click on IFFT and you have a nice thumb.

Frits
the picture are less nice by the big compressios that I must use.




mikemeister_admin
Posts: 4927
Joined: Fri Sep 20, 2013 8:29 pm

Postby mikemeister_admin » Tue Jun 06, 2006 4:39 pm

ADDUm : 2 pictures:

frits

mikemeister_admin
Posts: 4927
Joined: Fri Sep 20, 2013 8:29 pm

Postby mikemeister_admin » Wed Jun 07, 2006 6:38 pm

ADDUM:
I have tried the halve toned image from Mike Russell and indeed, my methode works also with the black brush.

Frits

-default
Posts: 1916
Joined: Thu Mar 26, 2015 1:53 am

Postby -default » Sat May 12, 2007 8:49 pm

Here's another example, this time using FFT to remove texture from a scanned print.

These are the before and after images, and the modified red channel.

Notice that the edges of the image retain the textured pattern.  To avoid this problem you may want to scan the white margins of the print that also contain the texture, and crop the edges after the FFT procedure.  Otherwise use the clone tool to remove any remaining texture from the image.

mikemeister_admin
Posts: 4927
Joined: Fri Sep 20, 2013 8:29 pm

Postby mikemeister_admin » Sun May 13, 2007 8:36 am

Mike
very interesting.
It is the veil of the bride you did vanish.
--

I have never used again FFT. So it would again difficult to do it.
It need practicing to do it.
--
I think that I go saving parts of this site in a pdf file or something.
When  I needed , I do not know how to handle.

Frits



Return to “Software”

Who is online

Users browsing this forum: No registered users and 28 guests