41 #pragma GCC system_header
79 init(
const std::vector<float>& feature,
const int feature_dimension,
const int N);
83 const std::vector<float>& in,
88 int out_size = -1)
const;
91 initOLD(
const std::vector<float>& feature,
const int feature_dimension,
const int N);
95 const std::vector<float>& in,
100 int out_size = -1)
const;
110 for (
int i = 0; i <
d_; i++) {
161 std::cout <<
"GROW" << std::endl;
164 short* old_keys =
keys_;
166 int old_capacity =
static_cast<int>(
capacity_);
175 for (
int i = 0; i < old_capacity; i++)
176 if (old_table[i] >= 0) {
177 int e = old_table[i];
192 for (std::size_t i = 0; i <
key_size_; i++) {
217 return static_cast<int>(
filled_);
228 find(
const short* k,
bool create =
false)
240 for (std::size_t i = 0; i <
key_size_; i++)
249 for (std::size_t i = 0; i <
key_size_ && good; i++)
const short * getKey(int i) const
HashTableOLD(int key_size, int n_elements)
std::size_t hash(const short *k)
int find(const short *k, bool create=false)
Implementation of a high-dimensional gaussian filtering using the permutohedral lattice.
void initOLD(const std::vector< float > &feature, const int feature_dimension, const int N)
Permutohedral()
Constructor for Permutohedral class.
int M_
Size of sparse discretized space.
int N_
Number of variables.
std::vector< float > barycentric_
Neighbors * blur_neighborsOLD_
std::vector< float > offsetTMP_
std::size_t generateHashKey(const std::vector< short > &k)
Pseudo random generator.
std::vector< float > baryOLD_
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
void init(const std::vector< float > &feature, const int feature_dimension, const int N)
Initialization.
std::vector< Neighbors > blur_neighbors_
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::vector< float > offset_
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
Neighbors(int n1=0, int n2=0)