Bandreject filtering on an image

30 ビュー (過去 30 日間)
ram
ram 2014 年 3 月 12 日
コメント済み: Saumya Verma 2019 年 4 月 15 日
How do i create a bandreject filter which i want to apply on an image ??
I want to create a bandrejectFilter of radius 10 and want to apply on an image
I know the code that i have written is wrong.Can somebody please help me with it
% Use Bandreject filter
[m,n]=size(I);
u0=256; % Cutoff frequency
u=0:m-1
v=0:n-1
if D(u,v)<266
H(u,v)==1
else H(u,v)=0
end
if D(u,v)>266
H(u,v)=1
else H(u,v)=0
end

採用された回答

Image Analyst
Image Analyst 2014 年 3 月 12 日
I don't understand that at all. All you're doing it some kind of strange way of intensity thresholding. Do you want to threshold a range of intensities or do a spatial frequency filter?
If you want a band reject spatial frequency filter, what I would do is to take the FFT, then call fftshift, then multiply by a black ring to zero out the stuff in the designated frequency range, then unshift and inverse fft.
  4 件のコメント
ram
ram 2014 年 3 月 15 日
Thank you very much.Finally got it
Saumya Verma
Saumya Verma 2019 年 4 月 15 日
Please upload the final code

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by