필터 지우기
필터 지우기

How to make guassian filter with same magnitude but different frequecies

조회 수: 2 (최근 30일)
Parag
Parag 2016년 7월 15일
편집: Parag 2016년 7월 15일
Hi, I am trying to make guassian filter with same magnitude but different frequecies. I am making white noise and filtering it through guassian high pass filter and then calculating Noise power spectrum on filtered image. I am expecting to see guassian filter design in NPS but I am not able to figure out why I am not able see it. I am posting my code here. I will aappreciate if you help me. Thank you.
if true
x_o = 256;
y_o = 256;
thresh=20;
%h_1 = glp(img,10,x_o,y_o);
%f =1 - h; %fftshift(h);
imges = zeros(256,256,128);
for i = 1:128
im_in = wgn(256,256,0);
im = fft(im_in);
B = ghp(im,thresh,x_o,y_o);;
imges(:,:,i)= B;
end
[nps_2d_dc, nps_1] = nps_2d_4_FD(real(imges),1,1,128);
end
I am attaching guassian and nps code here.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by