Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Mar 5, 2024
1 parent 029220e commit f31a8b1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/LAS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,6 @@ void LAS::filter_local_maxima(NumericVector ws)
else
Rcpp::stop("C++ unexpected internal error in 'filter_local_maxima': invalid windows."); // # nocov

std::vector<char> state(npoints);
std::fill(state.begin(), state.end(), 0);
for (int i = 0 ; i < npoints ; i++) { if (Z[i] < min_height) state[i] = NLM; }

SpatialIndex tree(las, skip);
Progress pb(npoints, "Local maximum filter: ");

Expand Down

0 comments on commit f31a8b1

Please sign in to comment.