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

Reply
 
Thread Tools
  #1  
Old 01-03-2011, 11:51 AM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
FFT problem. Some idea?

Hi everybody. I have again one of these damaged picture to retouch. It has a global texture which must be removed so I used very carefuly the FFT filter, like always I'm doing. However, the final resoult still presents some horizontal line patterns as you can see in the attached sample. I did this 3 times again but the lines are always there.
I've upload the high resolution file in this server:
http://www.mediafire.com/i/?3eux60y21b3hati
Maybe someone could give me a hand to solve this.
PS "File not found" is fake. You can download it.
Regards and thank you
Attached Images
File Type: jpg After_FFT.jpg (83.3 KB, 96 views)
Reply With Quote
  #2  
Old 01-03-2011, 02:37 PM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

I see where you painted out the pattern.

The rest of your pattern is located almost along the vertical band in the FFT Power Spectrum. You have to block out THOSE frequencies, too.

The danger is that the rest of your horizontal lines in the image will also go away.

Can't find your original, high-quality image.
Attached Images
File Type: jpg sans-hline.jpg (49.5 KB, 48 views)
Reply With Quote
  #3  
Old 01-03-2011, 03:12 PM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Thank you for answer.
Open the link http://www.mediafire.com/i/?3eux60y21b3hati and clic above, over "Download this image"
So, you say "You have to block out THOSE frequencies, too..." How should I do this? I used the FFT several times and had no resoult, the lines are still there..
Reply With Quote
  #4  
Old 01-03-2011, 04:50 PM
Tony W's Avatar
Senior Member
Patron
 
Join Date: Mar 2010
Posts: 717
Re: FFT problem. Some idea?

Hi Florin
I am not at all sure if this is of any help but the image link you posted is a grayscale version.

I have tried with my version of FFT without any success even tried convert to RGB - I was going to try rotating the image and overlaying etc. I think that FFT needs therefore an RGB image to start with.
Reply With Quote
  #5  
Old 01-03-2011, 05:31 PM
Senior Member
 
Join Date: Sep 2006
Posts: 368
Blog Entries: 1
Re: FFT problem. Some idea?

FFT does require an rgb image to start with. it uses the red channel to remove the texture.
Reply With Quote
  #6  
Old 01-03-2011, 06:14 PM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Hi, thank you my friends.
Yes, I've upload it as grey because is "lighter" than RGB. Just convert the mode from grey to rgb.
I always use the green channel for the FFT, should I try with the red one?
I'll make a try now.
I must confess that I was doing this kind of retouch before (to be a member here) painting the image, every single pixel, but it's a damn job. Takes a lot of time. Last year, in ReouchPro I learned about this filter and I'm really saving a lot of working time whenever people are sending me these textured pictures. This is the first time it did not work well.
Cheers
Reply With Quote
  #7  
Old 01-04-2011, 07:33 AM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Well, I made a try inverting the image after the first FFT pass (invert + FFT again + re-invert) but the resoult it's not so attractive. The lines went away but the picture is too blurry.
I belive this will be done with manually removing these lines.
Cheers
Reply With Quote
  #8  
Old 01-04-2011, 08:09 AM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

Here is the image (JPEG, quality = 95 to stay under the 100KB limit) with the pattern removed.

Also attached is the mask I used to do it. (scaled up to 1024x1024)

Used my software (FoveaPro) because I wanted to see the problem.

If you look at the mask in a vertical line down the center are a number of dots -- those dots represent the frequencies you were unable to remove when you did it by hand, above.
Attached Images
File Type: jpg fft-pattern-removed.jpg (98.7 KB, 79 views)
File Type: png Frequency-Mask.png (23.2 KB, 54 views)
Reply With Quote
  #9  
Old 01-04-2011, 08:12 AM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

Another thing you can try if you're willing to rescan the image is to rotate it by about 15° so that none of the pattern falls on a horizontal or vertical line. That trick (rotate the image a little and try again) should be in your repertoire.

The problem here was that you could not distinguish the pattern from the power spectrum + cross shape to identify H & V frequencies that needed to be removed.
Reply With Quote
  #10  
Old 01-04-2011, 08:14 AM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Very nice, JCR, much better than the FFT pass. Thank you
How could I get this mask/filter please?
Reply With Quote
  #11  
Old 01-04-2011, 08:19 AM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

The problem is that picture was sent via internet, I have not the original
Reply With Quote
  #12  
Old 01-04-2011, 08:29 AM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

It's called FoveaPro 4 (ReindeerGraphics.com), but I'm no sure you want to pay $800 for a 177 plug-ins of which you'll only use a few.

I wasn't trying to push my software, but rather help you out. That Free FFT stuff you've been using has some limitations.

Something else that I wrote, called ClearID ($995 from OceanSystems.com) has a one-stop plugin for removing patterns (called Pattern Remover). It is intended for Law Enforcement -- again at a price that is not exactly cheap.
Reply With Quote
  #13  
Old 01-04-2011, 08:31 AM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

Another trick with Fourier processing -- if you need to rotate, increase the image size to 200%, THEN Rotate, THEN Remove the frequencies, THEN scale it back down.

Normally, rotation causes blur, but if you scale the image up by 200% first...
Reply With Quote
  #14  
Old 01-04-2011, 08:44 AM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

K, I understand.
I'm always working over very high resolutions, 800 - 1200 dpi, 6 inch wide, this is my standard work space. This is the way I can zoom in and paint even the most smallest details. I'll try to apply this in my work. I was thinking the same about the FFT, sometimes it blures too much the images.
You're really a great professional, congratulations and thank you again for your time.
F
Reply With Quote
  #15  
Old 01-04-2011, 09:17 AM
Repairman's Avatar
Senior Member
 
Join Date: Dec 2010
Location: Bristol UK
Posts: 313
Re: FFT problem. Some idea?

Interesting stuff. I have never heard of fft - is it a filter hidden somewhere in the PS (CS3) menu. Any links to explanations and other uses for fft appreciated.
R.
Reply With Quote
  #16  
Old 01-04-2011, 09:30 AM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

FFT == Fast Fourier Transform.

It is NOT part of CSx.

This transform is a way of describing a signal (1-D, 2-D like an image, 3-D or more) as a summation of sine-waves. Short sine waves denote the "high" frequencies (meaning they repeat often) and long sine waves denote the "low" frequencies (meaning they slowly vary across the image).

In audio (a 1-D signal), the lows are the bass and the highs are the treble. In images (2-D), the highs are the edges of your image and the lows are the gradients and "halos" around things.

It is an interesting and useful mathematical space, especially for describing repeating patterns (like in this thread), but there is also a way to describe focus blur and motion blur and ways to remove it.

Here's a little bit: (link)

But there is a lot of stuff (including math!!) at Wikipedia.
Reply With Quote
  #17  
Old 01-05-2011, 02:31 AM
Repairman's Avatar
Senior Member
 
Join Date: Dec 2010
Location: Bristol UK
Posts: 313
Re: FFT problem. Some idea?

Fascinating link JCR. Much of the detail goes right over my head but the photo examples get the basic point across and are inspiring. Back in the day I would occasionally be asked to produce a roadside poster from one frame of a TV advert. Removing video scan lines automatically would have saved me heaps of time. Live and learn!
R.
Reply With Quote
  #18  
Old 01-05-2011, 11:34 AM
chillin's Avatar
Senior Member
 
Join Date: Sep 2006
Location: The Golden State
Posts: 1,189
Blog Entries: 1
Re: FFT problem. Some idea?

I used Image Analyzer. I filled out the gaps to continue with the pattern, cropped the picture & applied the filter. I can't post the full size of it (it is a 35MB tif), but here is the smaller sample.
Attached Images
File Type: jpg 5480_chillin_s.jpg (171.1 KB, 59 views)
File Type: jpg image analyzer.jpg (183.2 KB, 35 views)
Reply With Quote
  #19  
Old 01-05-2011, 11:45 AM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Thank you Chillin, this is really much better than my poor FFT resoult.
However, due to the client's hurry, I started this yesterday with my traditional (painting) retouch. Here is a capture. It will take more time but it will look fine, I'm sure.
Thank you a lot again for your time
Attached Images
File Type: jpg FFTproblem.jpg (47.2 KB, 50 views)
Reply With Quote
  #20  
Old 01-05-2011, 11:55 AM
chillin's Avatar
Senior Member
 
Join Date: Sep 2006
Location: The Golden State
Posts: 1,189
Blog Entries: 1
Re: FFT problem. Some idea?

If you wish, I can give you a link to the full version?
Reply With Quote
  #21  
Old 01-05-2011, 12:26 PM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Fine, thank you
Reply With Quote
  #22  
Old 01-05-2011, 12:40 PM
chillin's Avatar
Senior Member
 
Join Date: Sep 2006
Location: The Golden State
Posts: 1,189
Blog Entries: 1
Re: FFT problem. Some idea?

I have sent a private message w/a link
Reply With Quote
  #23  
Old 01-05-2011, 12:46 PM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Thank you very much
Reply With Quote
  #24  
Old 01-05-2011, 08:18 PM
Junior Member
Patron
 
Join Date: Jan 2009
Posts: 15
Re: FFT problem. Some idea?

jcr6,

Would it be possible for you to offer the advanced FFT plug-in as a download to purchase some day? (Separate from the 177 plug-in FoveaPro 4.) I'm guessing others besides me would be interested. Of course, you probably have some exclusivity clause that prohibits such a thing.

Tom
Reply With Quote
  #25  
Old 01-05-2011, 08:54 PM
jcr6's Avatar
Member
 
Join Date: Oct 2002
Location: Asheville, NC
Posts: 72
Re: FFT problem. Some idea?

It's my stuff, so I can do what I want with it. The problem is how much to charge for something like that and what should be in it.

Clearly a COLOR version would be the way to go. If I were so inclined, I'd use 32-bit mode (can store my transform in the layer!!) which would mean you'd probably want to use Extended for a layer workflow. Not required -- we'd make sure you could get by in non-Extended. CS4 at least.

There are many things to consider adding, like a better rotation (You get blurring when you rotate. A Fourier-space rotation would blur less than a bicubic.) Better interpolation comes to mind, as well. (I addressed this many years ago with Optipix.)

But the problem is that the audience seems small, which means I'd have to charge a lot, which kind of defeats the purpose of your request.

Hmmm.

Now, if we turned the tables the other way and tried to design a RetouchPro plug-in pack, proceeds to be split between maintaining the site and some to me, that could be very interesting. It would have to have 'the right stuff' in it. And it would benefit us all if we could sell it far and wide. Things to help the workflow. Address the missing stuff or the slow stuff in Photoshop. Make it easier to retouch. Hit the right pricepoint.

And I bet I could find a lot of beta testers around here.
Reply With Quote
  #26  
Old 01-06-2011, 05:45 PM
Senior Member
 
Join Date: May 2008
Posts: 286
Re: FFT problem. Some idea?

177 plugins for $800 that's only $4.52 per plugin which is rather cheap. I am sure if you'd sell them individually for say $10 each you'd probably have a few takers for some of them round here, not sure it would be rewarding financially enough for you making them all standalone though.

Anyway also just wanted to say thanks for your free plugs, notably the homomorphic compression one which is very cool but isn't listed on your main page and which I found by accident some day (even made a topic about it in the software section after that).

Cheers.

Quote:
Hmmm.

Now, if we turned the tables the other way and tried to design a RetouchPro plug-in pack, proceeds to be split between maintaining the site and some to me, that could be very interesting. It would have to have 'the right stuff' in it. And it would benefit us all if we could sell it far and wide. Things to help the workflow. Address the missing stuff or the slow stuff in Photoshop. Make it easier to retouch. Hit the right pricepoint.

And I bet I could find a lot of beta testers around here.
Sounds like a good idea to me.

Last edited by secretagents; 01-06-2011 at 05:56 PM.
Reply With Quote
  #27  
Old 01-06-2011, 06:07 PM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Meanwile, my retouch is ready:

http://i53.tinypic.com/slgx82.jpg
Reply With Quote
  #28  
Old 01-07-2011, 08:10 AM
Gewuerz's Avatar
Junior Member
 
Join Date: Apr 2006
Location: Germany
Posts: 15
Re: FFT problem. Some idea?

Hello,

the FFT-Filter specially would be very good. I think, i would buy this extra filter.
Is a demo or a test version possible?

Thanks and greetings Wolfgang

Last edited by Gewuerz; 01-07-2011 at 08:35 AM.
Reply With Quote
  #29  
Old 01-15-2011, 07:07 PM
Kraellin's Avatar
Moderator
 
Join Date: Apr 2005
Location: somewhere over there
Posts: 8,750
Blog Entries: 4
Re: FFT problem. Some idea?

very nice, florin
Reply With Quote
  #30  
Old 01-15-2011, 07:19 PM
Florin's Avatar
Senior Member
 
Join Date: Dec 2009
Location: Trujillo - Venezuela
Posts: 250
Re: FFT problem. Some idea?

Thank you, Craig. Yes, it's nice. Finally I had to paint it as I was doind before to know about the FFT. Here it did not helped too much.
Reply With Quote
Reply

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
luminance problem toni84 Photoshop Help 9 12-18-2010 04:08 PM
photoshop or file problem kyleb Photoshop Help 0 12-15-2010 09:25 PM
Removing banding texture. FFT Filter for MAC? SBNL Photo Retouching 12 12-15-2010 04:17 PM
Impressionist plugin Windows 7 problem belhbo Software 1 12-02-2010 01:30 AM
Problem with FFT - Strange Behavior rnbluvva Photo Restoration 7 09-16-2006 10:46 PM


All times are GMT -6. The time now is 04:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2008 Doug Nelson. All Rights Reserved