45 fin = fopen( filename.c_str() ,
"r" );
48 trace.
error() <<
"RawReader : can't open "<< filename<<endl;
51 typename T::Point firstPoint;
52 typename T::Point lastPoint;
54 firstPoint = T::Point::zero;
57 for(
unsigned int i=0; i < T::Domain::dimension; i++)
64 typename T::Domain domain(firstPoint,lastPoint);
66 typename T::Value val;
69 typename T::Domain::ConstIterator it = domain.begin(),itend=domain.end();
72 while ((fin) && (it != itend))
75 image.setValue( (*it),val);
84 trace.
error() <<
"RawReader: error while opening file "<<filename<<endl;