void medfilt(**vf1) {
double **vf11=new double*[m];
for(i=0;i<m;++i)
{vf11[i]=new double[n];}
for(i=0;i<m;i++)
for(j=1;j<n-1;j++) //这里对于同一行的数字取均值
{if(((vf1[i][j-1]>=vf1[i][j])&&(vf1[i][j-1]<=vf1[i][j+1]))||((vf1[i][j-1]<=vf1[i][j])&&(vf1[i][j-1]>=vf1[i][j+1])))
vf11[i][j]=vf1[i][j-1];
else if(((vf1[i][j]>=vf1[i][j-1])&&(vf1[i][j]<=vf1[i][j+1]))||((vf1[i][j]<=vf1[i][j-1])&&(vf1[i][j]>=vf1[i][j+1])))
vf11[i][j]=vf1[i][j];
else
vf11[i][j]=vf1[i][j+1];}
//考虑0点
for(i=0;i<m;i++)
{if(((0>=vf1[i][0])&&(0<=vf1[i][1]))||((0<=vf1[i][0])&&(0>=vf1[i][1])))
vf11[i][0]=0;
else if(((vf1[i][0]>=0)&&(vf1[i][0]<=vf1[i][1]))||((vf1[i][