Skip to content

Commit

Permalink
Converting one loop to algo for compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Jan 13, 2020
1 parent c44b5cd commit 41a1f1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions features/include/pcl/features/impl/brisk_2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,8 @@ pcl::BRISK2DEstimation<PointInT, PointOutT, KeypointT, IntensityT>::generateKern
if (index_change.empty ())
{
index_change.resize (points_ * (points_ - 1) / 2);
ind_size = static_cast<unsigned int> (index_change.size ());
}
for (unsigned int i = 0; i < ind_size; i++)
index_change[i] = i;
std::iota(index_change.begin (), index_change.end (), 0);

const float d_min_sq = d_min_ * d_min_;
const float d_max_sq = d_max_ * d_max_;
Expand Down

0 comments on commit 41a1f1b

Please sign in to comment.