How can I create a gaussian filter without imfilter ,fspecial or conv2

1 view (last 30 days)
I=imread(image);
h=fspecial('gaussian',si,sigma);
I=im2double(I);
I=imfilter(I,h,'conv');
figure,imagesc(I),impixelinfo,title('Original Image after Convolving with gaussian'),colormap('gray');
  1 Comment
David Young
David Young on 16 Dec 2014
Any image processing or computer vision textbook will give you the formulae, as indeed will Wikipedia. Just code them into ordinary MATLAB. But why not use imfilter etc.? Much easier.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!