資源簡介
雙邊濾波的逐段線性近似,參考文獻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個小程序代碼
評論
共有 條評論