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
00041 #ifndef PCL_NORMAL_3D_OMP_H_
00042 #define PCL_NORMAL_3D_OMP_H_
00043
00044 #include <pcl/features/normal_3d.h>
00045
00046 namespace pcl
00047 {
00053 template <typename PointInT, typename PointOutT>
00054 class NormalEstimationOMP: public NormalEstimation<PointInT, PointOutT>
00055 {
00056 public:
00057 typedef boost::shared_ptr<NormalEstimationOMP<PointInT, PointOutT> > Ptr;
00058 typedef boost::shared_ptr<const NormalEstimationOMP<PointInT, PointOutT> > ConstPtr;
00059 using NormalEstimation<PointInT, PointOutT>::feature_name_;
00060 using NormalEstimation<PointInT, PointOutT>::getClassName;
00061 using NormalEstimation<PointInT, PointOutT>::indices_;
00062 using NormalEstimation<PointInT, PointOutT>::input_;
00063 using NormalEstimation<PointInT, PointOutT>::k_;
00064 using NormalEstimation<PointInT, PointOutT>::vpx_;
00065 using NormalEstimation<PointInT, PointOutT>::vpy_;
00066 using NormalEstimation<PointInT, PointOutT>::vpz_;
00067 using NormalEstimation<PointInT, PointOutT>::search_parameter_;
00068 using NormalEstimation<PointInT, PointOutT>::surface_;
00069 using NormalEstimation<PointInT, PointOutT>::getViewPoint;
00070
00071 typedef typename NormalEstimation<PointInT, PointOutT>::PointCloudOut PointCloudOut;
00072
00073 public:
00077 NormalEstimationOMP (unsigned int nr_threads = 0) : threads_ (nr_threads)
00078 {
00079 feature_name_ = "NormalEstimationOMP";
00080 }
00081
00085 inline void
00086 setNumberOfThreads (unsigned int nr_threads = 0) { threads_ = nr_threads; }
00087
00088 protected:
00090 unsigned int threads_;
00091
00092 private:
00097 void
00098 computeFeature (PointCloudOut &output);
00099 };
00100 }
00101
00102 #ifdef PCL_NO_PRECOMPILE
00103 #include <pcl/features/impl/normal_3d_omp.hpp>
00104 #endif
00105
00106 #endif //#ifndef PCL_NORMAL_3D_OMP_H_