-8

I would like to combine two images A and B in the following way:

1) I want to take a Fourier transform of both of them

2) For image A I want to apply a weighted filter, which gives more emphasis for low frequencies

3) For image B I want to apply a weighted filter, which gives more emphasis for high frequencies

4) I want to combine these frequencies and take the inverse Fourier transform

Can someone give me any guidelines where I should start (which functions etc.) to do this in Matlab? =) I'm kinda learning about Fourier transform and I want to play around with images. I was hoping if someone could give an example of code how this could be done etc.

Thank you for any help! =)

4

1 回答 1

1

You've basically outlined the right approach which I'll summarize here:

1) Do the 2D FFTs.

2) Multiply them by a weighting factor. If you're FFTs are in (Real, Imaginary) form, multiply both components by the weight, and if (Magnitude, phase) just multiple the magnitude. If you're interested in just high and low frequencies, this will likely be radial weights, giving weights to things depending on their frequency.

3) Add the two together.

4) Inverse 2D FFT.

You can do the addition (item 3), either before or after the iFFT. Also, as Paul R mentioned, you can do the 2D filtering in the spatial domain instead of the frequency domain.

于 2013-06-18T21:23:06.103 回答