#include #include #include "array.h" //------------------------------------------------------- // f5.cpp // Compute Lacal minimum image by a 3x3 mask // MIAT Lab, Kaohsiung, Taiwan // CHEN Ching-Han, 2001.08.24 //------------------------------------------------------- void main() { ifstream in1("01.raw",ios::binary); ofstream out1("test.raw",ios::binary); uc2D ima0,ima1; ima0.Initialize(300,300); ima1.Initialize(300,300); for(int i=0;i>ima0.m[i][j]; for(int i=0;iima0.m[i+ii][j+jj])count++; if(count==0) ima1.m[i][j]=0; else ima1.m[i][j]=255; } for(int i=0;i