perform_saturation.m
来自「toolbox median filter You need to down」· M 代码 · 共 20 行
M
20 行
function x = perform_saturation(x,tau,use_mad)% perform_saturation - saturate a vector for better contrast%% x = perform_saturation(x,tau,use_mad);%% tau (around 1) is the saturation factor%% copyright (c) 2007 Gabriel Peyreif nargin<2 tau = 1;endif nargin<3 use_mad = 1;endtau = 2;x = x-mean(x(:)); x = clamp( x/(2*mad(x(:))), -tau,tau);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?