loat column[7]={0,0,0,0,0,0,0}; float data[7][7]; for(i = 3;i<=m_nHeight-4;i++) { int j = 3; //the data of 7*7 for(int m = -3;m<=3;m++) for(int n = -3;n<=3;n++) { COLORREF c = m_pImage->GetPixel(i+m,j+n); float grey = GetRValue(c); data[m+3][n+3] = grey; } //sum of 7 columns for(m=0;m<7;m++) for(int n=0;n<7;n++) { column[m] = column[m]+data[n][m]; } //the sum of all data float sum=0.0; for(m=0;m<7;m++) { sum = sum + column[m]; } //get the mean of the data float mean = sum =