64int main(
int argc,
char** argv )
66 unsigned int nbok = 0;
71 for (
int i = 0; i < argc; ++i )
81 Point p = Point::diagonal(0);
82 Point q = Point::diagonal(size-1);
90 const int maximalValue = size*size;
92 for (
int i = 0; i < maximalValue; ++i)
97 std::copy( r.begin(), r.end(), std::ostream_iterator<int>(cout,
", ") );
102 const int thresholdValue = maximalValue/2;
110 MyConstImageAdapter a(img, d, g, t);
117 std::copy( ra.begin(), ra.end(), std::ostream_iterator<int>(cout,
", ") );
120 std::vector<int> to_vector(25);
121 std::copy(ra.begin(), ra.end(), to_vector.begin());
122 for (
int i = 0; i < 25; i++)
157 bool res = (nbok == nb);
159 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;