双边滤波总结 包括代码与注释.docVIP

  • 39
  • 0
  • 约4.82千字
  • 约 7页
  • 2017-05-05 发布于上海
  • 举报
双边滤波总结 包括代码与注释

双边滤波总结 包括代码与注释 双边滤波器: 图像滤波,记载尽量保留图像细节特征的条件下对目标图像的噪声进行抑制。 双边滤波是一种可以保边去噪的滤波器。它的原理是因为滤波器由两个函数构成,一个函数是有几何空间距离决定滤波器系数,另一个有像素差值决定滤波器系数。 function B = bfilter2(A,w,sigma) % Verify that the input image exists and is valid. if ~exist(#39;A#39;,#39;var#39;) || isempty(A) error(#39;Input image A is undefined or invalid.#39;); end if ~isfloat(A) || ~sum([1,3] == size(A,3)) || ... min(A(:)) lt; 0 || max(A(:)) gt; 1 error([#39;Input image A must be a double precision #39;,... #39;matrix of size NxMx1 or NxMx3 on the closed #39;,... #39;interval [0,1].#39;])

文档评论(0)

1亿VIP精品文档

相关文档