implementation filter gaussian in matlab...

조회 수: 1 (최근 30일)
Megah Putri
Megah Putri 2011년 8월 10일
need information and source code ....

채택된 답변

Vivek Bhadouria
Vivek Bhadouria 2011년 8월 14일
Dear Megah,
Use this function to generate 2D gaussian filter with varying kernel size and variance
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%This program generates the 2D gaussian filter.
%To generate the filter,code should be written as f=gaussian_filter(size_of_kernel,sigma);
%This code was developed by Vivek Singh Bhadouria, NIT-Agartala, India on 4
%August 2011, 12:59AM (E-mail:vivekalig@gmail.com)
function f=gaussian_filter(n,s)
x = -1/2:1/(n-1):1/2;
[Y,X] = meshgrid(x,x);
f = exp( -(X.^2+Y.^2)/(2*s^2) );
f = f / sum(f(:));
end
  댓글 수: 1
Megah Putri
Megah Putri 2011년 8월 14일
thanks vivie... thank you so much ... ^_^

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Honglei Chen
Honglei Chen 2011년 8월 10일
Hi Megah,
The following function should be helpful
>> doc gaussfir
>> doc filter
HTH
  댓글 수: 1
Megah Putri
Megah Putri 2011년 8월 10일
??? sorry honglei chen, i dont understand ... :D ... im new member in mathworks... can you help me?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by