88 Messages
•
1.9K Points
Photoshop: FFT-based pattern remover (Filter/Brush/Tool)
A filter that automatically removes/reduces repeating patterns like raster patterns or paper texture.It would be of great help for anyone who ever encounters a scanned image with a repeating pattern (typical for image restoration work or when the only source for an image is a printed copy).Before/after example (click to see gif animation):
How to make such a filter: This can be done by doing a Fast Fourier Transform (FFT) to split an image into frequency components. The frequencies that make up repeating patterns will stand out and can be removed (today we do this manually with a black brush, but a filter can remove the "peaks" automatically). And inverse FFT is then performed to transform the image back. This entire process can be automated into one step; perhaps just with a slider to let the user choose how aggressively the filter removes frequencies.I posted a detailed explanation here with a short tutorial on how this is done step by step.Note that this only works on a single channel, so normally you would just bother to do this on the Luminosity component. Filtering each RGB-channel separately can also be done. I will leave that up to you Adobe... ;)
Responses
chain83
88 Messages
•
1.9K Points
9 y ago
(click to see before/after. Healing brush used to clean up some damage.)
Another example: This is just the FFT-filter, and I automated it using actions (with the help Threshold to find the "peaks"). Can't make it fully automated with actions yet though, but it can greatly speed things up until someone makes a proper filter.
(click to see before/after)
I think such a filter could generate a little "wow!" when demoed... ;)
Edit:
Some more examples and a downloadable plugin for doing the transform (but not the cleanup):
http://dl.dropbox.com/u/6795661/4N6si...
0
4n6sitecom
2 Messages
•
72 Points
8 y ago
Currently the website is aimed at forensic scientists but the plug-ins are at least as useful in photo restoration and retouching. Removal of stains, ink, discolorations and silvering can be done with the color deconvolution plug-in (examples).
For perspective manipulation and ligning up warped images there is the warping plug-in (examples), and for the repeating patterns there is the mentioned Fourier transform plug-in (examples).
Happy photo restoring!
0
0
chain83
88 Messages
•
1.9K Points
8 y ago
http://www.retouchpro.com/forums/soft...
What I miss is an OSX-compatible version (and ofc. for Adobe to make a fully automated "pattern/raster remover" based on FFT - the point of this thread).
Perhaps 4N6site is up for the job instead? I'm sure you'd make some really good friends in the retouching and image processing communities. ;)
--
Edit: Oh, just wanted to say, thanks for the neat plugins! :D
0
0
4n6sitecom
2 Messages
•
72 Points
8 y ago
The number of people that included a retina-display MacBook pro to motivate me was even smaller!
--
Edit: Thanks, am glad you enjoy them!
4
0
chain83
88 Messages
•
1.9K Points
8 y ago
http://www.retouchpro.com/forums/soft...
Not quite as good as when I do it manually yet, but with some tweaking it could be just as good.
Example on color image:
1
jerry_schneider_7204273
4 Messages
•
90 Points
6 y ago
5
0
chain83
88 Messages
•
1.9K Points
6 y ago
So this is an option for Mac-users who need FFT (for color images it appears to use the per-channel approach). It's not automated, but it cuts the painting time in half by mirroring your strokes, so that's nice. :)
Ps: A bit off-topic, but it also has a frequency separation filter (with live preview). Something a lot of Photoshop-users currently have to use actions for (and lack preview).
3
0
jeff_grant_5024312
51 Messages
•
760 Points
6 y ago
3
0
JEA
704 Messages
•
9.4K Points
6 y ago
http://gimp.lisanet.de
Already comes with the gmic plugin, but you can get the latest version of gmic from here:
http://gmic.eu/gimp.shtml
0
0
stuart_smith_5758080
10 Messages
•
206 Points
5 y ago
We are trying to get him to update his port by encouraging him to start a crowd funding project.
http://imagej.nih.gov/ij/download.html
Here is a standalone software that does FFT for modern Macs; but I cannot find a tutorial on how to apply it to 3 channel RGB images. I know it can do it, but it's a real pain to figure out and frustrating with no brush approach that I can figure out how to use. If you do a YouTube search for "Image J FFT" you will find a few but they are not as helpful for they do not explain how to merge channels after the repair.
1
0
carlos_gordillo
21 Messages
•
406 Points
5 y ago
0
0
jonas_madsen_rogne
23 Messages
•
520 Points
3 y ago
https://www.retouchpro.com/forum/tools/software/39278-ft-pattern-suppressor
This is right now the best way of doing FT-based pattern removals. Beats e.g. the implementation in Affinity.
Note: After posting v1 we have made some great improvements, and implemented both per-channel and 3D transformation for doing color images. It will be in v2 that will be posted on the same link around the end of the month I think (may/june 2018) - I just gotta record some video first. If anyone's able to make an OSX-version of the plugins the actions should be trivial to adapt.
0
chain83
88 Messages
•
1.9K Points
3 y ago
The filters now also handle color images, and the automatic suppression is much better:
http://ft.rognemedia.no
Still only Windows though. Hopefully someone with some Mac experience will offer to port it to Mac.
1
0
sean_dalton_f7b9mziaqf1am
1 Message
•
60 Points
3 y ago
0
0
richard_cobb_pu1m6nokjo6t
2 Messages
•
70 Points
3 y ago
https://affinity.serif.com/en-gb/photo/
1
0