#include #include #include "array.h" //------------------------------------------------------- // f4.cpp // Compute Histogram of image // MIAT Lab, Kaohsiung, Taiwan // CHEN Ching-Han, 2001.08.23 //------------------------------------------------------- void main() { ifstream in("01.raw",ios::binary); ofstream out("histogram.txt"); uc2D ima; ima.Initialize(300,300); for(int i=0;i>ima.m[i][j]; int histo[256]; for(int i=0;i<256;i++)histo[i]=0; // Histogram computation for(int i=0;i