Skip to content

Commit

Permalink
More pal cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 1, 2015
1 parent a19cb94 commit e602a58
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 77 deletions.
5 changes: 1 addition & 4 deletions src/core/pal/pal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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 );
Expand All @@ -481,7 +479,6 @@ namespace pal
prob->candidates->Search( amin, amax, LabelPosition::countOverlapCallback, ( void* ) lp );

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

0 comments on commit e602a58

Please sign in to comment.