2D image Fourier Transform Filter: Even & Odd.

In summary, Mistermath was explaining to us how spatial filtering works in the frequency domain, and how it is easier than filtering in the time domain. However, he was having trouble explaining why even-sized images have a center identification problem. He asked for suggestions, and one suggestion was to add a black or white vertical and horizontal line to the very end of the image to make it odd in length.
  • #1
stabu
26
0
Hi,

Just when I thought I'd grasped the Discrete Fourier Transform properly,something comes along and messes me up ... and my books don't seem to treat it.

Say you have a square 2D image and you want to do an Ideal LowPass Filter. Well, in general, filters need to be odd-number-sized so that there is a clear center.

With a center shifted Fourier Transform, as long as the image has odd-numbered columns and rows, the center point is the DC component. That's fine if the image (and its Fourier Transform - always same number-size as image) are odd-number-sized. So you can apply a filter by multiplying each component of the image's FT.

But if the image is even-number-sized, what then? It implies you must multiply by an even-number-sized filter. In any case, your center is in fact N/2+1, when N is the dimension of your square image ... so your "center" is in fact, not in the center.

This has me in a fuddle. Sorry if I don't explain myself properly ... you'll need to have run into this problem yourself to fully gasp it.

Having said that, in general terms even-number-sized object do have center-identification problem ...

Thanks in advance for suggestions and advice ...
 
Physics news on Phys.org
  • #2
I don't understand most of what you said, but why can't you just add a black or white vertical and horizontal line (as needed) to the very end of your image to make it odd pixel in length?
 
  • #3
hi Mistermath,

yes, I was quite circumspect, sorry. However, your suggestion is to the point, so thanks for trying to understand.

It's doable, but it's a hack. It introduces corruption - however small, which I want to avoid. However, I'm not above trying it!

Many thanks! Any more suggestions welcome, though it appears I have to clarify (however, I suppose I was looking for people who have done mage processing before ...).

Cheers!
 
  • #4
OK.. I seem to have made some progress ... on the question only.

It remains to be seen if on the answer also.. but it could be.

When I talked about filters needing to be odd-numbered (1x1,3x3,5x5,etc), well that's a spatial filter requirement. And spatial filtering is a different story.

Filtering in the frequency domain is easier as it just means multiplying each element of your matrix by your filter matrix. Even or oddsized images, the operation doesn't change: simple element by element multiplication.

What my question should have addressed is how the inverse FT- center-de-shifting (sorry if this is obscure - it's for image processors only) of the image occurs when even of odd. For even images, you simply apply fftshift again (matlab-speak). But for oddsized images, you cannot do this. Read matlab's help ref. iffshift function.

It really came out and bit me, this one. It's seems hard to explain. Apologies to quizzical readers.
 

1. What is a 2D image Fourier Transform Filter?

A 2D image Fourier Transform Filter is a mathematical technique used in image processing to analyze the frequency components of an image. It converts the image from its spatial domain to its frequency domain, allowing for the identification and manipulation of specific frequency patterns.

2. How does the filter differentiate between even and odd components?

The filter uses the mathematical concept of symmetry to differentiate between even and odd components. Even components have a mirror symmetry, meaning they are identical when flipped horizontally or vertically, while odd components have a point symmetry, meaning they are identical when rotated 180 degrees.

3. What is the purpose of using an even and odd filter?

The even and odd filter helps to isolate specific frequency components in an image. By separating the even and odd components, it allows for targeted manipulation of these components, which can help to enhance or remove certain features in the image.

4. Can the filter be applied to any type of image?

Yes, the 2D image Fourier Transform Filter can be applied to any type of image as long as it is in a digital format. It is commonly used in fields such as image processing, computer graphics, and signal processing.

5. Are there any limitations to using the even and odd filter?

While the even and odd filter can be a powerful tool in image processing, it does have limitations. It may not be effective in isolating frequency components in images with complex patterns or textures. Additionally, the filter may introduce artifacts in the image if not used carefully.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
998
  • Introductory Physics Homework Help
Replies
4
Views
820
Replies
1
Views
925
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
4K
  • Mechanical Engineering
Replies
5
Views
1K
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
Back
Top