Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef PCL_MLS_OMP_H_
00041 #define PCL_MLS_OMP_H_
00042
00043 #include <pcl/surface/mls.h>
00044
00045 namespace pcl
00046 {
00052 template <typename PointInT, typename PointOutT>
00053 class MovingLeastSquaresOMP : public MovingLeastSquares<PointInT, PointOutT>
00054 {
00055 using MovingLeastSquares<PointInT, PointOutT>::input_;
00056 using MovingLeastSquares<PointInT, PointOutT>::indices_;
00057 using MovingLeastSquares<PointInT, PointOutT>::fake_indices_;
00058 using MovingLeastSquares<PointInT, PointOutT>::initCompute;
00059 using MovingLeastSquares<PointInT, PointOutT>::deinitCompute;
00060 using MovingLeastSquares<PointInT, PointOutT>::nr_coeff_;
00061 using MovingLeastSquares<PointInT, PointOutT>::order_;
00062 using MovingLeastSquares<PointInT, PointOutT>::normals_;
00063 using MovingLeastSquares<PointInT, PointOutT>::upsample_method_;
00064 using MovingLeastSquares<PointInT, PointOutT>::voxel_size_;
00065 using MovingLeastSquares<PointInT, PointOutT>::dilation_iteration_num_;
00066 using MovingLeastSquares<PointInT, PointOutT>::tree_;
00067 using MovingLeastSquares<PointInT, PointOutT>::mls_results_;
00068 using MovingLeastSquares<PointInT, PointOutT>::search_radius_;
00069 using MovingLeastSquares<PointInT, PointOutT>::compute_normals_;
00070 using MovingLeastSquares<PointInT, PointOutT>::searchForNeighbors;
00071
00072 typedef typename MovingLeastSquares<PointInT, PointOutT>::PointCloudIn PointCloudIn;
00073 typedef typename MovingLeastSquares<PointInT, PointOutT>::PointCloudOut PointCloudOut;
00074 typedef typename MovingLeastSquares<PointInT, PointOutT>::NormalCloud NormalCloud;
00075 typedef typename MovingLeastSquares<PointInT, PointOutT>::MLSVoxelGrid MLSVoxelGrid;
00076
00077 public:
00079 MovingLeastSquaresOMP () : threads_ (1)
00080 {};
00081
00085 MovingLeastSquaresOMP (unsigned int nr_threads) : threads_ (0)
00086 {
00087 setNumberOfThreads (nr_threads);
00088 }
00089
00093 inline void
00094 setNumberOfThreads (unsigned int nr_threads)
00095 {
00096 if (nr_threads == 0)
00097 nr_threads = 1;
00098 threads_ = nr_threads;
00099 }
00100
00101 private:
00103 unsigned int threads_;
00104
00108 virtual void
00109 performProcessing (PointCloudOut &output);
00110
00112 std::string getClassName () const { return ("MovingLeastSquaresOMP"); }
00113 };
00114 }
00115
00116 #endif //#ifndef PCL_MLS_H_