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_FPFH_OMP_H_
00042 #define PCL_FPFH_OMP_H_
00043
00044 #include <pcl/features/feature.h>
00045 #include <pcl/features/fpfh.h>
00046
00047 namespace pcl
00048 {
00074 template <typename PointInT, typename PointNT, typename PointOutT>
00075 class FPFHEstimationOMP : public FPFHEstimation<PointInT, PointNT, PointOutT>
00076 {
00077 public:
00078 typedef boost::shared_ptr<FPFHEstimationOMP<PointInT, PointNT, PointOutT> > Ptr;
00079 typedef boost::shared_ptr<const FPFHEstimationOMP<PointInT, PointNT, PointOutT> > ConstPtr;
00080 using Feature<PointInT, PointOutT>::feature_name_;
00081 using Feature<PointInT, PointOutT>::getClassName;
00082 using Feature<PointInT, PointOutT>::indices_;
00083 using Feature<PointInT, PointOutT>::k_;
00084 using Feature<PointInT, PointOutT>::search_parameter_;
00085 using Feature<PointInT, PointOutT>::input_;
00086 using Feature<PointInT, PointOutT>::surface_;
00087 using FeatureFromNormals<PointInT, PointNT, PointOutT>::normals_;
00088 using FPFHEstimation<PointInT, PointNT, PointOutT>::hist_f1_;
00089 using FPFHEstimation<PointInT, PointNT, PointOutT>::hist_f2_;
00090 using FPFHEstimation<PointInT, PointNT, PointOutT>::hist_f3_;
00091 using FPFHEstimation<PointInT, PointNT, PointOutT>::weightPointSPFHSignature;
00092
00093 typedef typename Feature<PointInT, PointOutT>::PointCloudOut PointCloudOut;
00094
00098 FPFHEstimationOMP (unsigned int nr_threads = 0) : nr_bins_f1_ (11), nr_bins_f2_ (11), nr_bins_f3_ (11), threads_ (nr_threads)
00099 {
00100 feature_name_ = "FPFHEstimationOMP";
00101 }
00102
00106 inline void
00107 setNumberOfThreads (unsigned int nr_threads = 0) { threads_ = nr_threads; }
00108
00109 private:
00115 void
00116 computeFeature (PointCloudOut &output);
00117
00118 public:
00120 int nr_bins_f1_, nr_bins_f2_, nr_bins_f3_;
00121 private:
00123 unsigned int threads_;
00124 };
00125 }
00126
00127 #ifdef PCL_NO_PRECOMPILE
00128 #include <pcl/features/impl/fpfh_omp.hpp>
00129 #endif
00130
00131 #endif //#ifndef PCL_FPFH_OMP_H_