📄 blur.m
字号:
function j = blur(filename, sigma)% Blur is a function that given an image as input, it will blur % a copy of it using a gaussian function with parameters% determined by the user - radius and sigma.% % BLUR('filename.xxx', radius, sigma);% if sigma < 1, radius = [2 2];else radius = [2*sigma 2*sigma];endfname = imread(filename);temp = fspecial('gaussian', radius, sigma);j = imfilter(imresize(fname, 0.35), temp, 'same', 'conv');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -