58 unsigned int nbok = 0;
64 typedef TSpace::Point
Point;
66 TSpace::Integer t[5] = {0,0,0,0,0};
68 TSpace::Integer t2[5] = {15,15,15,15,15};
70 TSpace::Integer t3[5] = {3,3,3,3,3};
79 for (
Image::Iterator it=image.begin(),itend=image.end(); it!=itend; ++it)
81 image.setValue( c , 0 );
84 Predicate aPredicate(image,0);
93 itDom != itDomend; ++itDom)
97 L2Metric::RawValue norm2=0;
98 for(Point::Iterator itd=d.begin(), itdend=d.end(); itd!=itdend; ++itd)
99 norm2+= (*itd)*(*itd);
101 if (
dt.metric()->rawDistance( (*itDom),
dt.getVoronoiSite(*itDom) ) != norm2)
104 <<
": expected="<<norm2<<
" and computed="
105 <<
dt.metric()->rawDistance( (*itDom),
dt.getVoronoiSite(*itDom) )
112 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
113 <<
"true == true" << std::endl;
Iterator for HyperRectDomain.
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
const ConstIterator & begin() const
const ConstIterator & end() const