38 #ifndef PCL_FILTERS_RANDOM_SUBSAMPLE_H_
39 #define PCL_FILTERS_RANDOM_SUBSAMPLE_H_
41 #include <pcl/filters/filter_indices.h>
55 template<
typename Po
intT>
74 typedef boost::shared_ptr< RandomSample<PointT> >
Ptr;
75 typedef boost::shared_ptr< const RandomSample<PointT> >
ConstPtr;
81 seed_ (static_cast<unsigned int> (time (NULL)))
145 return (static_cast<float>(rand () /
double (RAND_MAX)));
166 typedef boost::shared_ptr<RandomSample<pcl::PCLPointCloud2> >
Ptr;
167 typedef boost::shared_ptr<const RandomSample<pcl::PCLPointCloud2> >
ConstPtr;
170 RandomSample () : sample_ (UINT_MAX), seed_ (static_cast<unsigned int> (time (NULL)))
172 filter_name_ =
"RandomSample";
226 applyFilter (std::vector<int> &indices);
234 return (static_cast<float> (rand () /
double (RAND_MAX)));
240 #ifdef PCL_NO_PRECOMPILE
241 #include <pcl/filters/impl/random_sample.hpp>
244 #endif //#ifndef PCL_FILTERS_RANDOM_SUBSAMPLE_H_