Skip to content

Commit

Permalink
Merge pull request #3119 from taketwo/deprecate-mlsomp
Browse files Browse the repository at this point in the history
Convert MovingLeastSquaresOMP into an alias template and deprecate
  • Loading branch information
SergioRAgostinho authored Jun 5, 2019
2 parents 06d2e1e + 9ac7cdf commit 3914730
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions surface/include/pcl/surface/mls.h
Original file line number Diff line number Diff line change
Expand Up @@ -743,23 +743,8 @@ namespace pcl
getClassName () const { return ("MovingLeastSquares"); }
};

/** \brief MovingLeastSquaresOMP implementation has been merged into MovingLeastSquares for better maintainability.
* \note Keeping this empty child class for backwards compatibility.
* \author Robert Huitl
* \ingroup surface
*/
template <typename PointInT, typename PointOutT>
class MovingLeastSquaresOMP : public MovingLeastSquares<PointInT, PointOutT>
{
public:
/** \brief Constructor for parallelized Moving Least Squares
* \param threads the maximum number of hardware threads to use (0 sets the value to 1)
*/
MovingLeastSquaresOMP (unsigned int threads = 1)
{
this->setNumberOfThreads (threads);
}
};
using MovingLeastSquaresOMP [[deprecated("use MovingLeastSquares instead, it supports OpenMP now")]] = MovingLeastSquares<PointInT, PointOutT>;
}

#ifdef PCL_NO_PRECOMPILE
Expand Down

0 comments on commit 3914730

Please sign in to comment.