Skip to content
Permalink
Browse files

More pal cleanups

  • Loading branch information
nyalldawson committed Sep 1, 2015
1 parent a19cb94 commit e602a58a85a421ddd3e2aecf1d2b6bed4d490045
Showing with 83 additions and 77 deletions.
  1. +1 −4 src/core/pal/pal.cpp
  2. +73 −71 src/core/pal/problem.cpp
  3. +9 −2 src/core/pal/problem.h
@@ -442,9 +442,7 @@ namespace pal
fFeats->append( feat );
}

idlp = 0;
int nbOverlaps = 0;
prob->labelpositions = new LabelPosition*[prob->nblp];

while ( fFeats->size() > 0 ) // foreach feature
{
@@ -472,7 +470,7 @@ namespace pal
// make sure that candidate's cost is less than 1
lp->validateCost();

prob->labelpositions[idlp] = lp;
prob->addCandidatePosition( lp );
//prob->feat[idlp] = j;

lp->getBoundingBox( amin, amax );
@@ -481,7 +479,6 @@ namespace pal
prob->candidates->Search( amin, amax, LabelPosition::countOverlapCallback, ( void* ) lp );

nbOverlaps += lp->getNumOverlaps();
idlp++;
}
delete feat;
}

0 comments on commit e602a58

Please sign in to comment.
You can’t perform that action at this time.