perform_median_filtering.m
来自「A toolbox for the non-local means algori」· M 代码 · 共 24 行
M
24 行
function M = perform_median_filtering(M,k)% perform_median_filtering - perform moving average median%% M = perform_median_filtering(M,k);%% k is the half width of the window (detult k=1).%% This filtering method is very efficient to remove impulsive or salt and% peper noise.%% Copyright (c) 2007 Gabriel Peyreif nargin<2 k = 1;endw = 2*k+1;n = size(M,1);options.sampling = 'uniform';H = compute_patch_library(M,k,options);H = reshape(H, [w*w n*n]);H = median(H); M = reshape(H, n,n);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?