#include #include #include "array.h" //------------------------------------------------------- // f3.cpp // Binarization with user assigned threshold // MIAT Lab, Kaohsiung, Taiwan // CHEN Ching-Han, 2001.08.23 //------------------------------------------------------- void main() { ifstream in("01.raw",ios::binary); ofstream out("test.raw",ios::binary); uc2D ima; ima.Initialize(300,300); for(int i=0;i>ima.m[i][j]; int threshold; cout<<"Enter a threshold for binarization : "; cin>>threshold; // Binarization for(int i=0;i