Implement a Gaussian filter with its variance σ as a user input...

回答 (2 件)

Youssef  Khmou
Youssef Khmou 2013 年 2 月 26 日

0 投票

hi,
try testing your own ideas, as a first test try to set a function
Y= Gaussian_Filter(X,sigma)
% So you have input signal X and standard deviation sigma
% ADD your own code here : is it convolution, simple multiplication,....
%set Gaussian kernel
%constant=....
kernel = exp(-constant/2*(sigma^2));
%Y=conv(X,kernel) as example
Shashank Prasanna
Shashank Prasanna 2013 年 2 月 26 日

0 投票

Since this is standard functionality, you can expect that someone has already implemented this and shared this in File Exchange:
You can take a look at them to implement you own or use them yourself.

質問済み:

2013 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by