Skip to content

Commit

Permalink
Merge pull request #1214 from mdering/master
Browse files Browse the repository at this point in the history
Made changes to allow OMP 2.0 compatibility
  • Loading branch information
taketwo committed Apr 29, 2015
2 parents 0dfe212 + 913f7f1 commit 34a4fd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tracking/include/pcl/tracking/impl/pyramidal_klt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,9 @@ pcl::tracking::PyramidalKLTTracker<PointInT, IntensityT>::downsample (const Floa

int width = (smoothed.width +1) / 2;
int height = (smoothed.height +1) / 2;

int *ii = new int[width];
int *ii_ptr = ii;
std::vector<int> ii (width);
for (int i = 0; i < width; ++i)
*ii_ptr++ = 2*i;
ii[i] = 2 * i;

FloatImagePtr down (new FloatImage (width, height));
#ifdef _OPENMP
Expand Down

0 comments on commit 34a4fd7

Please sign in to comment.