%A为给定图像,归一化到[0,1]的矩阵 %W为双边滤波器(核)的边长/2 function B = bfilter2(A,w,sigma)% Pre-process input and select appropriate filter. % Verify that the input image exists and is valid. if~exist('A','var') || isempty(A)
超经典双波滤波程序,简单明确 Author: Harold Nyikal & Haarith Devarajan Reference: C. Tomasi & R. Manduchi, Bilateral Filtering for Gray and Color Images, Proceedings of the 1998 IEEE International Conference on Computer Vision, Bombay, India.