Which function can I use to implement the following image filter?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ba Ba Black Sheep!
am 3 Jan. 2017
Kommentiert: Ba Ba Black Sheep!
am 3 Jan. 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159387/image.png)
I have two questions,
(1) What kind of image filter is this? Is it a band-pass filter?
(2) Which MATLAB function can I use to implement this filter?
Reference:
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 3 Jan. 2017
Bearbeitet: Image Analyst
am 3 Jan. 2017
It looks like a radial low pass filter. If Cx and Cy are not zero then it's like it's filtering (masking) out a spot in the spectrum, so that's kind of like a bandpass filter, but not really since it's a spot not a band.
First they rotate the 2D spectrum by theta for some reason. Then they create H which looks like it's supposed to be multiplied by the image spectrum in Fourier space. You can fft the image, then create the H image, then call
fftImage = fft(grayImage);
outputSpectrum = fftImage .* H;
spatialDomainImage = ifft2(outputSpectrum);
See if you can create H yourself. It's not hard.
3 Kommentare
Image Analyst
am 3 Jan. 2017
Well it might be. I'm not that familiar with Butterworth. It could be that they're just shifting prior to rotating to do basically what the MATLAB function fftshift() does. In that case it's just moving the DC location to the center of the image, or to the corners, depending on how it started out, as long as Cx and Cy are halfway along the image.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Digital Filtering finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!