Skip to content

Commit

Permalink
Fixing tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolanddenis committed Oct 19, 2016
1 parent c7ffc64 commit e6e4eec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion tests/geometry/volumes/distance/testPowerMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/volumes/distance/PowerMap.h"
#include "DGtal/geometry/volumes/distance/ExactPredicateLpPowerSeparableMetric.h"
#include "DGtal/geometry/volumes/distance/ReverseDistanceTransformation.h"
#include "DGtal/kernel/sets/DigitalSetDomain.h"
#include "DGtal/images/ImageContainerBySTLMap.h"
#include "DGtal/images/ImageContainerBySTLVector.h"
Expand Down Expand Up @@ -329,11 +330,16 @@ bool testPowerMapFromSites( const Set &aSet, std::array<bool, Set::Space::dimens
Power3 power3( aSet.domain(), image, l3, periodicity);
trace.endBlock();

trace.beginBlock("Validating the Power Map");
trace.beginBlock("Validating the Power Map l_3");
nbok += checkPowerMap( power3 ) ? 1 : 0;
nb++;
trace.endBlock();

trace.beginBlock("Reverse DT computation");
typedef ReverseDistanceTransformation<typename Power2::WeightImage, L2PowerMetric> RDT;
RDT rdt(aSet.domain(), power2.weightImagePtr(), l2, periodicity);
trace.endBlock();

return nbok == nb;
}

Expand Down
3 changes: 1 addition & 2 deletions tests/geometry/volumes/distance/testVoronoiMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ bool testVoronoiMapFromSites( const Set &aSet, std::array<bool, Set::Space::dime
Set mySet(aSet.domain());

for(typename Set::Domain::ConstIterator it = aSet.domain().begin(),
itend = aSet.domain().end();
itend = aSet.domain().end();
it != itend;
++it)
mySet.insertNew( *it );
Expand Down Expand Up @@ -517,7 +517,6 @@ bool testVoronoiMapFromSites( const Set &aSet, std::array<bool, Set::Space::dime
trace.beginBlock(" DT computation");
typedef DistanceTransformation<typename Set::Space, Set, L2Metric> DT;
DT dt(aSet.domain(), mySet, l2, periodicity);

trace.endBlock();

return nbok == nb;
Expand Down

0 comments on commit e6e4eec

Please sign in to comment.