adjusting the kernel of a Gaussian filter

2 ビュー (過去 30 日間)
Alex Bunka
Alex Bunka 2018 年 11 月 26 日
Im trying to Create a normalized Gaussian filter to blur an image. I need to make the filter 256x256 pixels, with a kernel of 4x4. The problem is that I can't find a function that lets me adjust the kernel. What I have right now:
H=fspecial('gaussian',256,4);
x=imfilter(XnoisyBlur,H);
figure(3)
imshow(x)
H1=(abs(H));
F=(x).*(1./H).*((H1.^2)/((H1.^2)+200));
figure(4)
imshow(F)
To create a gaussian and then deconvolve it. The deconvolved image always turns up black, and I think my gaussian is the issue.

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by