38 #ifndef PCL_FILTERS_RANDOM_SUBSAMPLE_H_
39 #define PCL_FILTERS_RANDOM_SUBSAMPLE_H_
55 template<
typename Po
intT>
69 RandomSample () : sample_ (UINT_MAX), seed_ (static_cast<unsigned int> (time (NULL)))
71 filter_name_ =
"RandomSample";
111 unsigned int sample_;
125 applyFilter (std::vector<int> &indices);
133 return (static_cast<float>(rand () /
double (RAND_MAX)));
154 RandomSample () : sample_ (UINT_MAX), seed_ (static_cast<unsigned int> (time (NULL)))
156 filter_name_ =
"RandomSample";
196 unsigned int sample_;
204 applyFilter (PointCloud2 &output);
210 applyFilter (std::vector<int> &indices);
218 return (static_cast<float> (rand () /
double (RAND_MAX)));
224 #endif //#ifndef PCL_FILTERS_RANDOM_SUBSAMPLE_H_