最小二乘法去噪的matlab实现,matlab源代码注解求翻译,基于总体最小二乘法的图像去噪...
function[X]=MinMaxdenoise(X,m,n)%pre-processingfunctionthattakesouttheoutliers.%seepaperformoreinformation.Xmin=ordfilt2(X,n,ones(m,m));Xmax=ordfilt2(X,m*m-n+1,ones(m,m));X=max(min(X,Xmax),Xmin);funct