#include #include #define nr 300 #define nc 300 typedef unsigned char BYTE; //------------------------------------------------------- // f8.cpp // Convolution filtering using moving average // MIAT Lab, Kaohsiung, Taiwan // CHEN Ching-Han, 2001.10.09 //------------------------------------------------------- void Average (int WinSize, BYTE **InIm, BYTE **OutIm); BYTE ** array2D(int nnr,int nnc); void main() { ifstream in1("01.raw",ios::binary); ofstream out1("test.raw",ios::binary); BYTE **ima1,**ima2; ima1=array2D(nr,nc); ima2=array2D(nr,nc); for(int i=0;i>ima1[i][j]; Average(5, ima1, ima2); for(int i=0;i> 1; Area = (2*n+1) * (2*n+1); for (r=0; r