#include #include #define nr 300 #define nc 300 typedef unsigned char BYTE; //------------------------------------------------------- // f9.cpp // image shaping using 3x3 Laplacian // MIAT Lab, Kaohsiung, Taiwan // CHEN Ching-Han, 2001.10.09 //------------------------------------------------------- void Laplacian(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]; Laplacian(ima1, ima2); for(int i=0;i