Path: news.mathworks.com!not-for-mail
From: "liu " <yacheeliu@yahoo.com.cn>
Newsgroups: comp.soft-sys.matlab
Subject: Re: HELP!How can I konw a fft2 processed image's frequency value
Date: Tue, 25 Nov 2008 08:44:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 27
Message-ID: <gggdsi$b0o$1@fred.mathworks.com>
References: <gge3bc$sbm$1@fred.mathworks.com> <gge406$646$1@fred.mathworks.com> <gge61q$s1o$1@fred.mathworks.com> <ggeach$ocv$1@fred.mathworks.com>
Reply-To: "liu " <yacheeliu@yahoo.com.cn>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227602642 11288 172.30.248.35 (25 Nov 2008 08:44:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 25 Nov 2008 08:44:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1614690
Xref: news.mathworks.com comp.soft-sys.matlab:503044


"Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> wrote in message <ggeach$ocv$1@fred.mathworks.com>...
> "liu " <yacheeliu@yahoo.com.cn> wrote in message <gge61q$s1o$1@fred.mathworks.com>...
> > "Gavrilo Bozovic" <gavrilo.bozovic@helbling.ch> wrote in message <gge406$646$1@fred.mathworks.com>...
> > > make an image of the pattern alone, and do its FFT. 
> > > 
> > > However, removing a pattern from an image is not so easy: the frequencies that constitute your pattern will probably overlap with the frequencies of the image itself. Therefore, if you simply remove all the frequencies constituting the pattern, you'll also alter the image.
> > > 
> > > Secondarily, if your pattern is not a sine, it will have more than one frequency, and most likely an infinite number of frequencies.
> > 
> > If it is regular it will have many sub-frequencis ,can I wipe off these sub-frequencis?
> 
> It depends. If it's a sine, it will have one frequency. You can then proceed to delete completely this frequency from your global image, but this is likely to alter your image. It's as if you hade a blue stain on a picture, and decided to remove it by removing all the blue: you'd alter the picture.
> 
> Then, if it is not a sine, if it is a grid, for instance, the pattern will have infinite frequency components. At this point, you can also try to remove all these components, but you'll also alter your image.
> 
> Basically, it's more complicated than this....
> 
> what kind of pattern do you have? is it simply a grid?

I can't upload pic here,it's grid,like redular line,dot,crosing line etc in the back ground ,I just want to wipe off these line,dot.I don't mind if the  image  would be damaged in  some degree.Thank you~

I=imread('path');
A=rgb2gray(I);
W=fft2(A);
imshow(W);
J=fftshift(W);
figure,imshow(log(abs(J)),[])