双边滤波Matlab实现The Bilateral Filter(3)

img = imread('.\lena.tif');
%%img = imread('.\images\lena_gray.tif');
img = double(img)/255;
img = img+0.05*randn(size(img));
img(img<0) = 0; img(img>1) = 1;
%img = imnoise(img,'gaussian');
figure, imshow(img,[])
title('原始图像')
d = 6;
sigma = [3 0.1];
resultI = BilateralFilt2(double(img), d, sigma);

figure, imshow(resultI,[])
title('双边滤波后的图像')

结果:

双边滤波Matlab实现The Bilateral Filter

Reference:

1.C Tomasi, R Manduchi.Bilateral Filtering for Gray and Color Images, - Computer Vision, 1998.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/6e44cf73e5ee60e56b941bbceb63a5f3.html