RetouchPRO

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


RP Tutorials Discussion for tutorials published via our automated system, and about the tutorial publishing system itself.

Reply
 
Thread Tools
  #31  
Old 08-18-2005, 01:55 AM
Flora's Avatar
Moderator
Patron
 
Join Date: Mar 2002
Location: Milan, Italy
Posts: 2,274
Blog Entries: 3
Quote:
Originally Posted by deadants
I'm using a mac as well and have googled all over looking for a plugin. So far no luck.

I have borrowed my brothers PC laptop and installed the filters, I tried the FFT RGB and imeadiatly did the IFFT RGB but the image came out transparent. Any suggestions?
Hi deadants,

what I think happened is that you run FFT on a Layer instead of a flattend image ...
Reply With Quote
  #32  
Old 08-18-2005, 02:02 AM
deadants's Avatar
Senior Member
 
Join Date: Nov 2004
Location: Port Stephens, NSW, Australia
Posts: 184
No I definatly had only one Layer. I even did step 1, duplicate the image. It's a strage one
Reply With Quote
  #33  
Old 08-18-2005, 07:09 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
IFFT is real choosy and doesn't respond to anything but the most basic of images. Besides not allowing layers, you also cannot have any masking or alpha channels and your (one) layer must be "Background" (Flatten the layer <alt><L><F>).

If this doesn't help, another tip is to keep checking the IFFT from time to time instead of waiting till the end. If it's OK then just undo (<ctrl><z>) and continue fixing the FFT image.

Hope this helps,

Reply With Quote
  #34  
Old 08-18-2005, 01:10 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,122
Hi Wils and deadants

There IS a mac version.
It’s called ImageJ

Image J is part of The Image Processing Toolkit
Available Here for Free
http://rsb.info.nih.gov/ij/download.html
ImageJ runs on Linux, Mac OS 9, Mac OS X and Windows
The Docs are here
http://rsb.info.nih.gov/ij/docs/
And the bit about FFT is here
http://rsb.info.nih.gov/ij/docs/menus/process.html#fft

It is Not a plugin but a complete program. You will need Java Installed.

Deadants
I have also had a similar problem with the image going transparent. I found it was because I went too close to the cross and the centre star. Do as Byro suggests and keep going back to check your results and saving them.


Ken
Reply With Quote
  #35  
Old 08-18-2005, 08:00 PM
deadants's Avatar
Senior Member
 
Join Date: Nov 2004
Location: Port Stephens, NSW, Australia
Posts: 184
Hi Guys,
I did all of the suggested steps but it just kept going transparent, so what I did was create a new background layer and filled with black, then placed the transparent layer over it. That seems to have solved the problem.

I have tried imajeJ but It works a bit differently I found after much trial and error that you have to completely erase the centre star. I wonder if someone else with a Mac could confirm what I'm doing. You can see the attached image has on the left the original halftone image, the centre is the FFT and the right is the IFFT. I know it doesn't look to good but if I erase the outer stars and leave the centre star untouched the image turns black.
Attached Images
File Type: jpg ImageJFFT.jpg (51.8 KB, 103 views)
Reply With Quote
  #36  
Old 08-18-2005, 08:37 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,122
Hi deadants

I have ImageJ installed and I can probably help but this is probably not the correct thread to do this in.

You can start a new thread in the help section or We can continue in the thread that started this tutorial Here

http://www.retouchpro.com/forums/image-help/10660-fft-golf-balls.html


Ken
Reply With Quote
  #37  
Old 08-18-2005, 08:44 PM
deadants's Avatar
Senior Member
 
Join Date: Nov 2004
Location: Port Stephens, NSW, Australia
Posts: 184
OK Ken, New thread coming up.
Reply With Quote
  #38  
Old 10-09-2005, 03:42 PM
Junior Member
 
Join Date: Oct 2005
Posts: 3
FFT Filter

I am scanning fine art pictures and have tried this tut. I am still picking up the canvas texture from the picture I have scanned. Is there any way to remedy this?

Thanks,

June
Reply With Quote
  #39  
Old 10-09-2005, 07:40 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,122
Hi June. Welcome to RetouchPro.

FFT works on a uniform pattern of texture. If you are working on canvas originals then the canvas may be stretched and then the pattern is no longer uniform

If this is the case then you could try splitting your picture into sections and using FFT on each section.

If your fine art pictures are not on canvas then post your results and we will try to help.

Ken
Reply With Quote
  #40  
Old 10-10-2005, 09:30 AM
Junior Member
 
Join Date: Oct 2005
Posts: 3
help with fft

i am trying to use this filter. At step two, the entire image goes black?

Any help will be appreciated.

Thanks,
Reply With Quote
  #41  
Old 10-10-2005, 02:57 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,122
Hi June.

2) Flatten all Layers
You may not need this but, for precaution, flatten all the layers...<alt><L>, <F>. This is because FFT doesn’t understand layers, masks, alpha channels etc. The image must be just one “Background” layer and nothing else;

Byro included this step to make sure you only have one layer as FFT will not work on Layers. This should not make your image black
Try using the mouse instead of the shortcut. Layer > Flatten Image.
If Flatten Image is greyed out then skip this step and move to step3

Ken
Reply With Quote
  #42  
Old 10-10-2005, 09:00 PM
Junior Member
 
Join Date: Oct 2005
Posts: 3
Thanks

I checked that. Tell me, is there a limitation on the size of the file the filter will work on?

Thanks again,

June
Reply With Quote
  #43  
Old 10-12-2005, 02:14 PM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,122
There is nothing in the code to limit file size. However I suspect that FFT could be memory intensive so file size will be limited by your computers memory and disk space.

This will not affect the quality of the results. It will just slow down the conversion.

Ken
Reply With Quote
  #44  
Old 10-17-2005, 01:56 PM
Junior Member
 
Join Date: May 2005
Posts: 7
Step 8

Hi,
WOW what a great time saver, thanks Ro. One question. 99% of my work has been on gray images so I'm not familiar with a lot of the color operations. In trying an RGB and getting to your Step 8 (Put the colours back in) you state "Slide, with ......". My question is Slide what? Where does this luminosity layer come from? Its not listed in the channels or layer list.

Thanks for bearing with my ignorance, ebbtide
Reply With Quote
  #45  
Old 10-17-2005, 03:01 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
Glad you found this useful.

The FFT process works only on the luminosity (greyscale) of the image.
So, what we want to do in this step is to mix the colour information of the original with our "clean" luminosity.

This could be done by copying (<ctrl><C>) the new luminosity image and pasting (<ctrl><V>) on top of the original.

The "slide" method is just a short-cut. Details......
- You need to have the "luminosity" image active, but also have visible some part of the original image.
- On the layers palette, select the layer of the "luminosity" image.
- You can now drag this layer from the layers palette onto the visible part of the original image.
- Now you have a new luminosity (greyscale) layer on top of the old colour information.

Only it will be in the wrong place! Which is why you'll remember to press <Shift> while dragging, which aligns the layer correctly.
Yeah, I know - the short-cut looks longer than the original. On paper, yes. In practice, no.

Reply With Quote
  #46  
Old 10-17-2005, 04:26 PM
Panpan's Avatar
Senior Member
 
Join Date: Jun 2005
Location: Gatineau, QC Canada
Posts: 352
Quote:
Originally Posted by Cameraken
2) Flatten all Layers
You may not need this but, for precaution, flatten all the layers...<alt><L>, <F>. This is because FFT doesn’t understand layers, masks, alpha channels etc. The image must be just one “Background” layer and nothing else;
This is not correct. Just put a black layer behind the fft layer.

Pierre
Reply With Quote
  #47  
Old 10-17-2005, 07:08 PM
Junior Member
 
Join Date: May 2005
Posts: 7
Thanks, less star painting

Ro, I followed your additional instruction and got two gray scale images but all was OK once I realized that the color didn't return until the luminosity blending was selected, then everything was ok.

Because the FFT is a symmetric math function made of cosines you only need to paint out the stars on either the left side to the vertical axis or from the right side of the image. Saving a little painting time if you have a lot of unwanted frequencies in your image. Thanks for the instant help Ro !
Reply With Quote
  #48  
Old 10-18-2005, 05:37 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
Quote:
Originally Posted by ebbtide
Because the FFT is a symmetric math function made of cosines you only need to paint out the stars on either the left side to the vertical axis or from the right side of the image.....
Are you sure about that?
I can understand the logic, but it seems strange that 50% (or maybe 75%) of the information is just waste.
Also, if I paint just one side how is the IFFT function going to know which side it should consider, original or painted?

It would be nice if it was true, but I think it's unlikely.

Reply With Quote
  #49  
Old 10-18-2005, 06:14 AM
Cameraken's Avatar
Senior Member
 
Join Date: Feb 2005
Location: Lancashire (UK)
Posts: 1,122
Pierre

I went to http://www.pages.drexel.edu/~avc25/archive.htm#FFT to try to find some more information. But is sadly lacking and does not say if a picture can be on layers.

However I did do some tests.
When you run FFT on a layer then the texture from only that layer is removed and the image comes back transparent (hence the black layer required) but this gives darker results than working from a flattened picture.

I can’t understand why you would want to work on a layer as texture removal should be the first step in the workflow

My Quote was not my words but an extract of step 2 in the tutorial and I think it is a sensible precaution and should be left as it is.

Ebbtide
I also tried your method and still had texture in the picture

Ken
Reply With Quote
  #50  
Old 10-18-2005, 05:06 PM
Junior Member
 
Join Date: May 2005
Posts: 7
Too Fast

Yea, I shot too fast on saying you could only do half the symmetric star pattern. I scanned a newspaper picture and did my grand experiment. Painting out half worked as well as painting all. But on retrospect I guess it was because it was such a bad image I couldn't see the difference. On trying a high quality image with interference in it, you do definitely need to paint out all stars. Sorry for the fire drill guys.
Reply With Quote
  #51  
Old 11-16-2005, 11:21 AM
Junior Member
 
Join Date: Nov 2005
Posts: 10
Here's what I've found about the FFT:

Each quadrant is a stretched copy with a 90*x degree rotation about the center of the image. If you don't believe me, run the FFT on a square image with even-numbered dimensions and then duplicate one quadrant into the remaining three with the difference blending mode. You'll get perfect black.

Here's what I've done to improve the process:
1. Copy the noisy document to a new document & flatten.
2. Increase canvas size by 400px on X & Y with 50% gray background color.
3. Run the FFT RGB filter.
4. Copy the Red channel to a new layer.
5. Make a new layer.
6. Knock out the white stars with a black star brush on the top part of the image.
7. Duplicate the layer with the black stars.
8. Make a new temp layer and just dump whatever color into it.
9. Link the duplicate and the dump layers.
10. Rotate the dump layer 180 deg.
11. unlink & delete the dump layer.
12. link the two star layers & the copied red channel & CTRL-E to merge linked.
13. Copy all. Hide the layer. paste into the red channel with the background selected. Delete that extra layer or just flatten.
14. Run the IFFT filter.
15. Copy & paste some of the "striping" that's in the grey area, (usually it's vertical) stretch it over the whole canvas, and invert & set to hard light 50%. I'm not sure why it shows up in the first place.
16. Crop off the extra 400px & slap the grey image onto the original. Run median on the color part. Woo. Done.

Now then, what I havn't been able to figure out when enough is enough. At what point do i say "This star is too small. if I knock it out with black then I'll just get a big cloudy mess." I have a feeling that I should be using grey to knock out stars sometimes instead of black -- like when they get really close to the center. Sometimes it seems like being quick and dirty about knocking out stars is better than being maticulous.

[For example], This picture turned out fine, but sometimes I get cloudy mess all over the place.

[MINI FFT TUTORIAL]
Attached Images
File Type: jpg mini.jpg (97.9 KB, 57 views)

Last edited by Bmud; 12-22-2005 at 01:35 PM.
Reply With Quote
  #52  
Old 11-16-2005, 02:44 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
Hi there, Bmud. Welcome to RetouchPRO
Thank you for a very interesting post.

- As I see it each quadrant would be a mirrored copy, and not a rotated copy. Other than that, yes agreed .

- Are you sure you posted the right brush? I had imagined something star-shaped (which would be a great idea) but what came out was an "alphabet" brush.

- In your "example" picture, I think you've painted out way too many stars. If you are trying to eliminate paper texture, then only the larger stars of the central diamond need painting. If you follow the repetitive pattern of these stars you'll find a few other less obvious stars that may still produce unwanted texture (see attachment). The other small stars may be due to some element of the actual image, or the effect of the 400 pixel border that you added - and should be left alone;

- The striping trick is quite neat, I'll have to try that out. As to why it happens - my theory would be that when we replaced the stars with black holes we threw away some information that would be needed at the edges;

- I too have the feeling that some sort of an average grey would be better than just pure black. When I defended this I got shot down by the theorists, but I haven't given up yet.

- As to when is enough. The important stars, due to the paper texture form a regular pattern around the centre. These are the only one's you need to paint - but be sure to get them all. If you are getting close to centre, then you're probably knocking out something important from the image and not unwanted paper texture.

Hope to hear more from you,

Attached Images
File Type: jpg fft_omg-byRo.jpg (98.8 KB, 76 views)
Reply With Quote
  #53  
Old 11-23-2005, 11:35 AM
Junior Member
 
Join Date: Nov 2005
Posts: 10
I fixed the FFT Brush download. Thanks for the tip. I'm probably going to save a bunch of time now.

The behavior seems to vary, but no doubt the images are completely identical when the top is rotated 180 degrees and brought to the bottom.
Attached Images
File Type: jpg fft_omg2.jpg (99.3 KB, 43 views)

Last edited by Bmud; 11-23-2005 at 11:47 AM.
Reply With Quote
  #54  
Old 11-23-2005, 12:17 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
Fun (1) things to do with the FFT.....

- Do a big radial blur from the centre - makes an "arty" halo effect;

- Double the size (centre and crop) of the Red channel. As I remember (can't check now) you get 4, quarter-sized, almost identical versions.


(1) Some people, like me, have a wierd definition of "fun"
Reply With Quote
  #55  
Old 11-23-2005, 02:54 PM
Caitlin's Avatar
Senior Member
 
Join Date: Mar 2005
Location: Sydney, Australia
Posts: 494
Quote:
Originally Posted by byRo
- In your "example" picture, I think you've painted out way too many stars. If you are trying to eliminate paper texture, then only the larger stars of the central diamond need painting. If you follow the repetitive pattern of these stars you'll find a few other less obvious stars that may still produce unwanted texture (see attachment). The other small stars may be due to some element of the actual image, or the effect of the 400 pixel border that you added - and should be left alone;
Oh! I was unaware of this, I've been painting out everything but the central large star. It's not what you have in the tut though?
Reply With Quote
  #56  
Old 11-23-2005, 06:20 PM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
Quote:
Originally Posted by Caitlin
..... It's not what you have in the tut though?
Oops, you're quite right. I'll have to fix that.

Reply With Quote
  #57  
Old 11-25-2005, 10:02 AM
Junior Member
 
Join Date: Nov 2005
Posts: 10
Basically, if you increase your canvas by 400px, then any star that's 400px away from the edge (or less) can be ignored. That alone has saved me a bunch of time.

I like the Radial Zoom effect! That'll come in handy the next time I need to make something dirty-looking

Check this out, a moire nightmare... I've tried FFT on this, but the dot pattern is really big compared to the whole image (I think)
www.osysi.net/files/fft/fft_nightmare.png

Last edited by Bmud; 11-25-2005 at 10:39 AM.
Reply With Quote
  #58  
Old 11-25-2005, 01:55 PM
Panpan's Avatar
Senior Member
 
Join Date: Jun 2005
Location: Gatineau, QC Canada
Posts: 352
There were certainly a lot of stars in the fft!

For color, I blurred the a and b channels in LAB mode. After the fft, I ran eat Image, corrected and sharpened, then ran Neat Image again. I thought I would get rid of the remaining pattern by running the fft again, but there were no stars left to blacken .

Pierre
Attached Images
File Type: jpg fft_nightmare.jpg (88.7 KB, 67 views)
Reply With Quote
  #59  
Old 11-26-2005, 03:47 AM
byRo's Avatar
Moderator
 
Join Date: May 2004
Location: Goianésia, Brazil
Posts: 1,592
Bmud, you're sure bringing up some interesting points here.....

1) Moire - For me, at least, moire patterns are caused by the interference of two high frequencies resulting in a new perceived low frequency. The "dot Pattern" on the picture you posted probably has another name (which I don't remember now).

2) Texture x Colour - For the images we've been considering in the tutorial the superimposed pattern was due to physical texture ridges of the paper on which the photograph was printed. In your image the pattern is not superimposed, rather each colour has a patterned disposition.
What this means is that when we do the FFT process it is not enough just to consider the luminosity, you should process each channel separately (see attachment)

3) I downloaded your FFT brush again, and got an alphabet again - maybe I'm doing something wrong. Anyway, based on (what I believe was) your idea, I made my own (see zip attachment). Actually it makes star painting easier because you can line just up the horizontal and vertical line and hit the star right on.

Attached Images
File Type: jpg fft_night_G.jpg (96.5 KB, 56 views)
File Type: jpg FFT-Nightm-Compare.jpg (92.6 KB, 79 views)
Attached Files
File Type: zip fft_brush-byRo.zip (5.8 KB, 59 views)
Reply With Quote
  #60  
Old 11-27-2005, 04:10 AM
bart_hickman's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Oregon, USA
Posts: 472
I took what Pierre did and ran the jpeg artifact remover in PSPX. That's the (1st attachment). Followed that with the PSP NR tool (2nd attachment)

Bart
Attached Images
File Type: jpg fft_nightmare_nojpeg.jpg (83.1 KB, 65 views)
File Type: jpg fft_nightmare_nojpeg_NR.jpg (78.1 KB, 69 views)
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
Remove a texture from an Scanned Image Neville310 Photo Restoration 9 08-30-2011 11:55 PM
Remove photopaper texture from old photo Vespeera Photo Restoration 84 01-24-2009 07:25 PM
Orange Peel Skin Texture - How to get ray12 Photo Retouching 89 04-29-2008 02:38 PM
Removal of photographic paper texture drettig Photo Restoration 9 11-28-2005 09:03 PM
Tutorial: Texturizer Filter tricks DannyRaphael Photo-Based Art 6 07-13-2002 03:13 PM


All times are GMT -6. The time now is 07:34 AM.


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