资源简介
双边滤波的逐段线性近似,参考文献Fast Bilateral Filtering
for the Display of High-Dynamic-Range Images
代码片段和文件信息
function g = fastbf(f sigma)
%f -- input image
%sigma -- [width of the spatial kernel width of the range kernel]
% window for spatial Gaussian
r = 3*sigma(1);
% create spatial filter
G_s = fspecial(‘gaussian‘ 2 * r + 1 sigma(1));
[m n] = size(f);
%bilateral filter output
g = zeros([m n]);
minf = min(f(:)
- 上一篇:multisim14版本的流水灯
- 下一篇:自学Matlab必备的60个小程序代码
评论
共有 条评论