42 std::vector<std::unordered_map<int, int>>
labels;
56 features = std::vector<float>(fdim);
57 labels = std::vector<std::unordered_map<int, int>>(ldim);
62 std::vector<float>::iterator f_begin,
63 std::vector<int>::iterator l_begin) {
66 transform(features.begin(), features.end(), f_begin, features.begin(),
69 for (std::vector<int>::iterator it = l_begin;
70 it != l_begin + labels.size(); ++it) {
78 std::vector<float>::iterator f_begin) {
81 transform(features.begin(), features.end(), f_begin, features.begin(),
90 for (std::vector<int>::iterator it = l_begin;
91 it != l_begin + labels.size(); ++it) {
106 std::vector<PointXYZ>& subsampled_points,
107 std::vector<float>& original_features,
108 std::vector<float>& subsampled_features,
109 std::vector<int>& original_classes,
110 std::vector<int>& subsampled_classes,
115 std::vector<PointXYZ>& subsampled_points,
116 std::vector<float>& original_features,
117 std::vector<float>& subsampled_features,
118 std::vector<int>& original_classes,
119 std::vector<int>& subsampled_classes,
120 std::vector<int>& original_batches,
121 std::vector<int>& subsampled_batches,
PointXYZ point
Definition: GridSubsampling.h:40
Definition: GridSubsampling.h:34
SampledData()
Definition: GridSubsampling.h:48
void update_all(const PointXYZ p, std::vector< float >::iterator f_begin, std::vector< int >::iterator l_begin)
Definition: GridSubsampling.h:61
void update_classes(const PointXYZ p, std::vector< int >::iterator l_begin)
Definition: GridSubsampling.h:86
void batch_grid_subsampling(std::vector< PointXYZ > &original_points, std::vector< PointXYZ > &subsampled_points, std::vector< float > &original_features, std::vector< float > &subsampled_features, std::vector< int > &original_classes, std::vector< int > &subsampled_classes, std::vector< int > &original_batches, std::vector< int > &subsampled_batches, float sampleDl, int max_p)
Definition: GridSubsampling.cpp:139
Definition: PinholeCameraIntrinsic.cpp:35
SampledData(const size_t fdim, const size_t ldim)
Definition: GridSubsampling.h:53
void update_features(const PointXYZ p, std::vector< float >::iterator f_begin)
Definition: GridSubsampling.h:77
std::vector< float > features
Definition: GridSubsampling.h:41
std::vector< std::unordered_map< int, int > > labels
Definition: GridSubsampling.h:42
int count
Definition: GridSubsampling.h:39
void update_points(const PointXYZ p)
Definition: GridSubsampling.h:98
void grid_subsampling(std::vector< PointXYZ > &original_points, std::vector< PointXYZ > &subsampled_points, std::vector< float > &original_features, std::vector< float > &subsampled_features, std::vector< int > &original_classes, std::vector< int > &subsampled_classes, float sampleDl, int verbose)
Definition: GridSubsampling.cpp:31