Skip to content

Commit

Permalink
Fix compile issue after replacing push_back with emplace_back
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Thiel committed Jan 19, 2019
1 parent d4502e2 commit c274d1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions keypoints/include/pcl/keypoints/brisk_2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ namespace pcl
// constructor arguments
struct CommonParams
{
static const int HALFSAMPLE = 0;
static const int TWOTHIRDSAMPLE = 1;
static const int HALFSAMPLE;
static const int TWOTHIRDSAMPLE;
};

/** \brief Constructor.
Expand Down
17 changes: 10 additions & 7 deletions keypoints/src/brisk_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
#include <emmintrin.h>
#endif

const int pcl::keypoints::brisk::Layer::CommonParams::HALFSAMPLE = 0;
const int pcl::keypoints::brisk::Layer::CommonParams::TWOTHIRDSAMPLE = 1;

/////////////////////////////////////////////////////////////////////////////////////////
// construct telling the octaves number:
pcl::keypoints::brisk::ScaleSpace::ScaleSpace (int octaves)
Expand Down Expand Up @@ -186,13 +189,13 @@ pcl::keypoints::brisk::ScaleSpace::getKeypoints (
delta_x, delta_y);

// store:
keypoints.emplace_back((point.u + delta_x) * l.getScale () + l.getOffset (), // x
(point.v + delta_y) * l.getScale () + l.getOffset (), // y
0.0f, // z
basic_size_ * l.getScale (), // size
-1, // angle
max, // response
i); // octave
keypoints.emplace_back((point.u + delta_x) * l.getScale () + l.getOffset (), // x
(point.v + delta_y) * l.getScale () + l.getOffset (), // y
0.0f, // z
basic_size_ * l.getScale (), // size
-1, // angle
max, // response
i); // octave
}
}
else
Expand Down

0 comments on commit c274d1f

Please sign in to comment.