Extracting frequency components of line in a image

5 views (last 30 days)
Hi.. I want to extract the only frequency components of discontinuous line in the image shown here http://tinypic.com/r/2va11fc/7 while removing all other frequencies Can i do like this
I = imread(image);
imshow(I);
FT = fft2(I);
FT(1,1) = 0;
I2 = ifft2(FT);
imshow(I2);

Accepted Answer

Gova ReDDy
Gova ReDDy on 17 Oct 2011
Actually this discontinuous line is a edge in the original image. As EDGES are high frequency components so I thought to suppress DC components...... So how can I extract frequency components by shifting the discontinuous line.
  5 Comments
kamran
kamran on 26 May 2019
Can any one guide me to find the high frequency image by descrete fourier transformation
kamran
kamran on 26 May 2019
I want a an output image not a graph of an images

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 16 Oct 2011
Straight lines (or line segments) have frequency components at all frequencies. Zeroing the DC component would at best shift the line segments. Zeroing any other frequency component would result in a wiggly line after reverse transformation.
  11 Comments
Gova ReDDy
Gova ReDDy on 6 Nov 2011
Here the value of 1 means the x has a values of 1 for a width of 40 as given in the above example of Image Analyst.
Doing fft for the entire image will result in the frequencies of entire image..right.
But Im asking this question for a long time*Extracting only the frequencies of line from the entire image*.How to do this..
Image Analyst
Image Analyst on 6 Nov 2011
Sorry. I consider this a dead end. I'm done. I suggest you take a different approach.

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!