Point Cloud Library (PCL)
1.11.1-dev
|
41 #pragma GCC system_header
82 init(
const std::vector<float>& feature,
const int feature_dimension,
const int N);
85 compute(std::vector<float>& out,
86 const std::vector<float>& in,
91 int out_size = -1)
const;
94 initOLD(
const std::vector<float>& feature,
const int feature_dimension,
const int N);
98 const std::vector<float>& in,
103 int out_size = -1)
const;
113 for (
int i = 0; i <
d_; i++) {
164 std::cout <<
"GROW" << std::endl;
167 short* old_keys =
keys_;
169 int old_capacity =
static_cast<int>(
capacity_);
178 for (
int i = 0; i < old_capacity; i++)
179 if (old_table[i] >= 0) {
180 int e = old_table[i];
195 for (std::size_t i = 0; i <
key_size_; i++) {
220 return static_cast<int>(
filled_);
231 find(
const short* k,
bool create =
false)
243 for (std::size_t i = 0; i <
key_size_; i++)
252 for (std::size_t i = 0; i <
key_size_ && good; i++)
std::vector< float > barycentric_
void computeOLD(std::vector< float > &out, const std::vector< float > &in, int value_size, int in_offset=0, int out_offset=0, int in_size=-1, int out_size=-1) const
std::size_t generateHashKey(const std::vector< short > &k)
Pseudo radnom generator.
HashTableOLD(int key_size, int n_elements)
std::size_t hash(const short *k)
void init(const std::vector< float > &feature, const int feature_dimension, const int N)
Initialization.
Neighbors * blur_neighborsOLD_
Neighbors(int n1=0, int n2=0)
~Permutohedral()
Deconstructor for Permutohedral class.
Permutohedral()
Constructor for Permutohedral class.
const short * getKey(int i) const
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
int d_
Dimension of feature.
void compute(std::vector< float > &out, const std::vector< float > &in, int value_size, int in_offset=0, int out_offset=0, int in_size=-1, int out_size=-1) const
std::vector< float > baryOLD_
int N_
Number of variables.
int find(const short *k, bool create=false)
void initOLD(const std::vector< float > &feature, const int feature_dimension, const int N)
int M_
Size of sparse discretized space.
std::vector< Neighbors > blur_neighbors_
std::vector< float > offset_
Defines functions, macros and traits for allocating and using memory.
std::vector< float > offsetTMP_
Implementation of a high-dimensional gaussian filtering using the permutohedral lattice.