Skip to content

Commit

Permalink
STYLE: Remove unused local tempVec from ImageKmeansModelEstimator
Browse files Browse the repository at this point in the history
Might slightly speedup `ImageKmeansModelEstimator::NearestNeighborSearchBasic`.
  • Loading branch information
N-Dekker authored and dzenanz committed Oct 12, 2022
1 parent f2783a9 commit 6e6bb61
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,8 @@ ImageKmeansModelEstimator<TInputImage, TMembershipFunction>::NearestNeighborSear
{
// itkDebugMacro(<<"Start nearest_neighbor_search_basic()");

double bestdistortion, tempdistortion, diff;
int bestcodeword;
const auto tempVec = make_unique_for_overwrite<double[]>(m_VectorDimension);
double bestdistortion, tempdistortion, diff;
int bestcodeword;

// unused: double *centroidVecTemp = ( double * ) new double[m_VectorDimension];

Expand Down

0 comments on commit 6e6bb61

Please sign in to comment.