48 std::vector<std::unordered_map<int, int>>
labels;
63 labels = std::vector<std::unordered_map<int, int>>(ldim);
68 std::vector<float>::iterator f_begin,
69 std::vector<int>::iterator l_begin) {
75 for (std::vector<int>::iterator it = l_begin;
76 it != l_begin +
labels.size(); ++it) {
84 std::vector<float>::iterator f_begin) {
96 for (std::vector<int>::iterator it = l_begin;
97 it != l_begin +
labels.size(); ++it) {
112 std::vector<PointXYZ>& subsampled_points,
113 std::vector<float>& original_features,
114 std::vector<float>& subsampled_features,
115 std::vector<int>& original_classes,
116 std::vector<int>& subsampled_classes,
121 std::vector<PointXYZ>& subsampled_points,
122 std::vector<float>& original_features,
123 std::vector<float>& subsampled_features,
124 std::vector<int>& original_classes,
125 std::vector<int>& subsampled_classes,
126 std::vector<int>& original_batches,
127 std::vector<int>& subsampled_batches,
Definition: GridSubsampling.h:40
void update_features(const PointXYZ p, std::vector< float >::iterator f_begin)
Definition: GridSubsampling.h:83
SampledData(const size_t fdim, const size_t ldim)
Definition: GridSubsampling.h:59
void update_classes(const PointXYZ p, std::vector< int >::iterator l_begin)
Definition: GridSubsampling.h:92
std::vector< std::unordered_map< int, int > > labels
Definition: GridSubsampling.h:48
void update_points(const PointXYZ p)
Definition: GridSubsampling.h:104
void update_all(const PointXYZ p, std::vector< float >::iterator f_begin, std::vector< int >::iterator l_begin)
Definition: GridSubsampling.h:67
PointXYZ point
Definition: GridSubsampling.h:46
SampledData()
Definition: GridSubsampling.h:54
std::vector< float > features
Definition: GridSubsampling.h:47
int count
Definition: GridSubsampling.h:45
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:37
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:145
Definition: PinholeCameraIntrinsic.cpp:16