RetouchPRO

Go Back   RetouchPRO > Technique > Photo Restoration
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read Chat Room


Photo Restoration Repairing damaged photos

Advertise Here

FFT Filter for Photoshop CS4

Reply
 
LinkBack Thread Tools
  #1  
Old 07-23-2010, 08:51 PM
kmmbkworm kmmbkworm is offline
Junior Member
Patron
 
Join Date: Jul 2010
Posts: 15
FFT Filter for Photoshop CS4

Have used Photoshop since Version 6 and even taught Photoshop for four years but have never heard of a FFT filter for Photoshop. Could someone please explain an FFT filter? I gather it must be purchased as a plugin. Also, I use a Mac running CS4 and need to know where I could purchase the filter for my system. I have owned a small photo restoration business for nine years and constantly run into the problem of removing paper texture from scans. Usually the techniques I learned from Katrin Eismann and Ben Willmore's books work just fine but am having a problem with a current project. Researched all the many Photoshop books I own as well as training DVDs and there is no mention of an FFT filter anywhere - could it possibly have another name? Completed research online and saw something about an FFT filter. Read through a thread on RetouchPro from 2008 about problems with a FFT filter but no clear explanation about what the FFT filter actually does. Can someone please help?
Reply With Quote
  #2  
Old 07-23-2010, 10:07 PM
Stecyk Stecyk is offline
Junior Member
 
Join Date: Jul 2010
Location: Calgary
Posts: 17
Re: FFT Filter for Photoshop CS4

FFT stands for Fast Fourier Transform. I recall this vaguely from my studies at university many moons ago.

Rather than me trying to explain it, here's two links that do a better job:

http://www.skeller.ch/ps/fft_action.php

http://www.tipsquirrel.com/index.php...educe-texture/

Those who appreciate the supporting math:

http://www.student.kuleuven.be/~m021...G/fourier.html

Using your favorite search engine, you can probably find several more links. To come back to your original post, I suspect that the FFT will help you tremendously. The second link has an example of textured paper.
Reply With Quote
  #3  
Old 07-23-2010, 10:09 PM
mistermonday's Avatar
mistermonday mistermonday is offline
Moderator
 
Join Date: Dec 2005
Posts: 3,011
Re: FFT Filter for Photoshop CS4

kmmbkworm, welcome to RetouchPro. FFT stands for Fast Fourier Transform and is a mathematical algorithm used to calculate a Discrete Fourier Transform and its inverse. Its pretty intense mathematics which finds applications in a wide range of engineering fields. With respect to digital images it can be used to filter repetitive patterns such as the honeycomb or similar patterns used in photographic paper notably in the 1970's and 80's. There are a number of FFT filters for digital images. I am not sure what is available for the Mac but a notable one for PCs is called Image Analyzer by Meesoft. A free version is available at Meesoft.com.
Regards, Murray
Reply With Quote
  #4  
Old 07-23-2010, 10:25 PM
kmmbkworm kmmbkworm is offline
Junior Member
Patron
 
Join Date: Jul 2010
Posts: 15
Re: FFT Filter for Photoshop CS4

Thanks to both Stecyk and mistermonday. I will follow all the leads you both provided. I don't understand how I could work with PS for so many years and so many versions and never hear a word about a FFT filter or fast fourier transform. I work extensively with channels, curves, layer masks, adjustment layers, etc., and have never heard of an FFT filter. I have also attend NAPP conferences for years and have never heard anyone mention it at one of the seminars I attended. It does sound like a filter I can certainly benefit from using. Has it always been a plugin or was it once included in PS? I have studied books and training DVDs by Katrin Eismann, Ben Willmore, Jack Davis, Barry Haynes, Dan Margulis, and of course, Scott Kelby, but can find no mention of an FFT filter. Why is it such a well-kept secret?
Reply With Quote
  #5  
Old 07-24-2010, 03:12 AM
0lBaldy's Avatar
0lBaldy 0lBaldy is offline
Senior Member
Patron
 
Join Date: Oct 2007
Posts: 3,419
Re: FFT Filter for Photoshop CS4

Quote:
Originally Posted by kmmbkworm View Post
Completed research online and saw something about an FFT filter. Read through a thread on RetouchPro from 2008 about problems with a FFT filter but no clear explanation about what the FFT filter actually does. Can someone please help?
Welcome to RetouchPRO Hope you enjoy your stay here and make lots of friends. Poke around, ask questions, offer help, have fun!

FFT and IFFT are built into ImageJ (open source, free, Mac Compatible)

Maybe these links will provide some insight to the FFT filter:

http://www.roborealm.com/help/FFT.php

http://www.qsimaging.com/ccd_noise_interpret_ffts.html

http://home.planet.nl/~ber03728/4N6site/improc/fftplugin/examples.htm

http://image.bio.methods.free.fr/lsmtransfftset.html

To repair most paper textures captured during a scan... using imageJ:

OPEN IMAGE.... Process>FFT>FFT, click magnifying glass and increase magnification to at least 50%% or more.....Image>Adjust>Brightness/Contrast (till you can see all the little white spots and your cursor), double click on pencil or brush ... adjust size a little bigger than the spot ~~~ paint each spot black except for the large center bright spot and the dividing lines ..... when finished covering all the spots.... Process>FFT>Inverse FFT.... save image with new name

It may seem like a secret because of all the other scientific uses of the Fourier transform... such as engineering, physics, applied mathematics, and chemistry... besides being sort of complicated to fully understand ( I know I do not have a clue.. except for a very few instances to use it within Photoshop)
Reply With Quote
  #6  
Old 07-24-2010, 08:50 AM
skydog's Avatar
skydog skydog is offline
Senior Member
 
Join Date: Jan 2006
Location: Carolina
Posts: 1,288
Re: FFT Filter for Photoshop CS4

Think of the texture you are having issues with...it has a pattern which is repeditive...it is not random...this pattern (frequency) is more prevalent than any other frequency (noise) in the photo. Fourier looks and all the noise and provide a distribution (ranking) of the frequencies. In the case with the pattern in the picture, this frequency would occur more often and be the highest rank. The spot that Baldy mentions above are those most occuring frequencies. When you paint them out you are basically erasing this frequency (pattern) from the photo.
Reply With Quote
  #7  
Old 07-24-2010, 01:26 PM
TommyO's Avatar
TommyO TommyO is offline
Senior Member
Patron
 
Join Date: Aug 2007
Location: NC, USA
Posts: 1,213
Re: FFT Filter for Photoshop CS4

kmmbkworm,
Don't feel bad, as FFT has generally only been discussed in the restoration or scientific communities, not the general Photoshop community. In addition to all the other good links and information provided by others above, here is one more that does a good job of explaining the math and some applications.


FFT Math Explained at the University of Edinburgh


The older FFT filters has some limitations with regard to the maximum number of pixels they could handle (30,000 pixels I think). So, as images got larger, the filters fell out of favor.

ImageJ is java based, so should work fine on any operating system. ImageJ also contains many many complex image manipulation algorithms.

The hard part of using FFT filters is remembering the actual steps. Since we don't use it often, it just doesn't come naturally. For example, the older FFT filter for PS had be used on a copy of the merged layers, then you had to paint out the offending frequencies on the one color channel used to stored the FFT results, then run the inverse and blend that back in to the original, etc., etc. So, others developed some actions to make the steps easier. However, the magic was always in the ability to paint out the offending frequencies. So, others also developed some really nice brushes to make the painting process easier. ( I happen to like those created by byRo, here on RP.) The brush /editing tool provided by ImageJ is a bit harsh, but seems to do the job. In fact, byRo was involved in most of the FFT discussions in the early 2000's here on RP. So, to learn more, just do an advanced search here on RP for FFT posts by byRO, or OlBaldy .
Reply With Quote
  #8  
Old 07-24-2010, 01:43 PM
Stecyk Stecyk is offline
Junior Member
 
Join Date: Jul 2010
Location: Calgary
Posts: 17
Re: FFT Filter for Photoshop CS4

Using TommyO's helpful information, I have three more links to share:

One: http://www.retouchpro.com/forums/rp-...r-texture.html

Two: http://retouchpro.com/tutorials/?m=show&id=185

Three: http://forums.dpreview.com/forums/re...ssage=16172756

The third link seems helpful in that there is an url link to an action.
Reply With Quote
  #9  
Old 07-25-2010, 09:03 PM
kmmbkworm kmmbkworm is offline
Junior Member
Patron
 
Join Date: Jul 2010
Posts: 15
Re: FFT Filter for Photoshop CS4

My thanks to everyone - TommyO, skydog, Stecyk, OlBaldy, and mistermonday - who responded so quickly and thoroughly to my inquiry. I did download Imagej on my Mac but did not get the results I had hoped for with the image. Next I downloaded the Alex Chirakov filter to load on my husband's PC on which I run PS CS2 as a backup. The tutorial from RetouchPro for the filter is wonderful. Had no problem following it. While the results were better than I had achieved previously, it still is not what I was hoping for. To be honest I think what I was hoping for was a miracle. While I can see a lot of use of the FTT filter in the future, this photo was just not meant to be. It started as a 1976 snapshot taken inside a church with poor lighting, 3.5 x 3.5. I cropped the bride and groom out of the center of the image as they walked down the aisle. Then enlarged the crop to 5x7. To put it mildly, the texture of the image is pronounced. Oh well, I got 19 snapshots looking great, much better than the original images. The client is using the images in a photo book to create a gift for his wife for their 35th wedding anniversary. The couple did not hire a photographer for their wedding. Just gave the guests camera to take point and shoot images so you can imagine what the images came out like. This time I ran the FFT filter on the entire snap shot before I cropped and enlarged the bride and groom. Much better results. Thank again to everyone, so thankful I have found RetouchPro.
Reply With Quote
  #10  
Old 07-25-2010, 09:54 PM
gholmes1936's Avatar
gholmes1936 gholmes1936 is offline
Senior Member
 
Join Date: Mar 2005
Location: Austin, Tx USA
Posts: 733
Blog Entries: 1
Newbie Re: FFT Filter for Photoshop CS4

Quote:
Originally Posted by kmmbkworm View Post
My thanks to everyone - TommyO, skydog, Stecyk, OlBaldy, and mistermonday - who responded so quickly and thoroughly to my inquiry. I did download Imagej on my Mac but did not get the results I had hoped for with the image. Next I downloaded the Alex Chirakov filter to load on my husband's PC on which I run PS CS2 as a backup. The tutorial from RetouchPro for the filter is wonderful. Had no problem following it. While the results were better than I had achieved previously, it still is not what I was hoping for. To be honest I think what I was hoping for was a miracle. While I can see a lot of use of the FTT filter in the future, this photo was just not meant to be. It started as a 1976 snapshot taken inside a church with poor lighting, 3.5 x 3.5. I cropped the bride and groom out of the center of the image as they walked down the aisle. Then enlarged the crop to 5x7. To put it mildly, the texture of the image is pronounced. Oh well, I got 19 snapshots looking great, much better than the original images. The client is using the images in a photo book to create a gift for his wife for their 35th wedding anniversary. The couple did not hire a photographer for their wedding. Just gave the guests camera to take point and shoot images so you can imagine what the images came out like. This time I ran the FFT filter on the entire snap shot before I cropped and enlarged the bride and groom. Much better results. Thank again to everyone, so thankful I have found RetouchPro.

Could you give us an example of a "before" photo? Somebody here maybe able to help with other suggestions.
Reply With Quote
  #11  
Old 07-26-2010, 01:50 PM
kmmbkworm kmmbkworm is offline
Junior Member
Patron
 
Join Date: Jul 2010
Posts: 15
Re: FFT Filter for Photoshop CS4

Thanks, I spoke with my client and he agreed for me share the image. I am going to upload the original scan plus the one I completed w/o FTT and the one with FTT. On the image I tried alone and in various combinations Median, Surface Blur, Smart Blur, Gaussian Noiseware, Portraiture, and now FTT. To sharpen, I tried various settings of Unsharp Mask as well as High Pass. Again, I think the problem is I wanted a miracle and there just isn't one for this image, it was too out of focus going in plus the paper texture to contend with on the images.
Attached Images
File Type: jpg GFCompleteFTT2.jpg (59.0 KB, 106 views)
File Type: jpg B-G-ChurchAisle.jpg (84.3 KB, 107 views)
File Type: jpg FGOriScan.jpg (64.8 KB, 107 views)
Reply With Quote
  #12  
Old 07-26-2010, 04:29 PM
skydog's Avatar
skydog skydog is offline
Senior Member
 
Join Date: Jan 2006
Location: Carolina
Posts: 1,288
Re: FFT Filter for Photoshop CS4

If anyone works on this...pls share the details...thanks
Reply With Quote
  #13  
Old 07-26-2010, 07:22 PM
TommyO's Avatar
TommyO TommyO is offline
Senior Member
Patron
 
Join Date: Aug 2007
Location: NC, USA
Posts: 1,213
Re: FFT Filter for Photoshop CS4

kmmbkworm,

Given the quality of the original, I think your results look just fine. I rather doubt you are going to be able to get it much better. That's just the unfortunate part of dealing with such small images from small cameras. The FFT filter seems to have done quite well. You'll also notice in your overall scan, in the uploaded jpg, that much of the texture appears to be gone. That is the result of another method that works with compressing then resizing the image. It has the effect of averaging the pixels, while retaining some of the edge detail of the actual good parts.

You could attempt to hand paint some of the small detail in the cropped images, but since you're working on someone else's dollar, they may not wish to pay for that. It also depends upon your artistic abilities as to how well that comes out. For me, that means no so much. I usually keep it fairly simple and short. I happen to like much of the work by Florin here on RP. You could do something similar, but less substantial to bring out some of the missing information... see example of dress attached... nothing spectacular, just an example.
Attached Images
File Type: jpg GFCompleteFTT2-to.jpg (83.9 KB, 76 views)
Reply With Quote
  #14  
Old 07-26-2010, 08:25 PM
kmmbkworm kmmbkworm is offline
Junior Member
Patron
 
Join Date: Jul 2010
Posts: 15
Re: FFT Filter for Photoshop CS4

Thanks so much for your help. I had totally forgotten about compression and resizing. I think Katrin Eismann discusses that in her books and on her training DVD but I sure did not think of it. Yes, the FFT Filter is impressive and it will be used on future projects. I am going to submit what I have to the client but if he does not like the results this time, will just let it go. Have other client projects waiting and have put way too much time in for this client. Again, am so glad I found Retouch Pro and I will be back. Who knows, maybe I will be able to help someone else down the road.
Reply With Quote
  #15  
Old 07-26-2010, 08:53 PM
Kraellin's Avatar
Kraellin Kraellin is offline
Moderator
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 8,758
Blog Entries: 4
Re: FFT Filter for Photoshop CS4

since this is more about fft than photoshop, i'm moving this thread to the restoration forum. you might also look at the rgbfft and rgbifft filter. it's a bit easier to use, if i remember correctly... or did someone mention or link to that already?
Reply With Quote
Reply

  RetouchPRO > Technique > Photo Restoration


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fft filter.. AWAIS400 Photo Restoration 13 05-29-2010 11:34 AM
A 50% Holiday Discount on Filter Forge gholmes1936 Software 10 12-29-2009 09:49 PM
HSB filter in CS4 pls help sergio2263 Software 4 06-13-2009 02:19 PM
FFT Filter Grief Liz Photo Restoration 10 11-13-2008 07:02 PM
Help: FFT Filter Liz Software 4 07-01-2008 04:49 AM

Advertise Here


All times are GMT -6. The time now is 04:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright 2014 Doug Nelson. All Rights Reserved