Skip to content

Commit

Permalink
Use in-class member initializing.
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Jul 4, 2020
1 parent ce01731 commit 2083ac9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace pcl

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/** \brief Empty constructor. */
EuclideanClusterExtraction () : min_pts_per_cluster_ (1), max_pts_per_cluster_ (std::numeric_limits<int>::max ()), cluster_tolerance_(0)
EuclideanClusterExtraction ()
{};

/** \brief the destructor */
Expand Down Expand Up @@ -143,13 +143,13 @@ namespace pcl
GPUTreePtr tree_;

/** \brief The spatial cluster tolerance as a measure in the L2 Euclidean space. */
double cluster_tolerance_;
double cluster_tolerance_ {0};

/** \brief The minimum number of points that a cluster needs to contain in order to be considered valid (default = 1). */
int min_pts_per_cluster_;
int min_pts_per_cluster_ {1};

/** \brief The maximum number of points that a cluster needs to contain in order to be considered valid (default = MAXINT). */
int max_pts_per_cluster_;
int max_pts_per_cluster_ {std::numeric_limits<int>::max()};

/** \brief Class getName method. */
virtual std::string getClassName () const { return ("gpu::EuclideanClusterExtraction"); }
Expand Down

0 comments on commit 2083ac9

Please sign in to comment.