Public Member Functions | Private Member Functions | Private Attributes | List of all members
lvr2::ClSOR Class Reference

#include <ClStatisticalOutlierFilter.hpp>

Public Member Functions

void calcDistances ()
 
void calcStatistics ()
 
 ClSOR (floatArr &points, size_t num_points, int k, int device=0)
 
void freeGPU ()
 
int getInliers (lvr2::indexArray &inliers)
 
void setK (int k)
 Set the number of k nearest neighbors k-neighborhood. More...
 
void setMult (float std_dev_mult)
 
 ~ClSOR ()
 

Private Member Functions

void finalizeCl ()
 
void getDeviceInformation (int platform_id=0, int device_id=0)
 
const char * getErrorString (cl_int error)
 
void init ()
 
void initCl ()
 
void initKdTree ()
 PRIVATE ///. More...
 
void loadSORKernel ()
 

Private Attributes

cl_mem D_Distances
 
cl_mem D_kd_tree_splits
 
cl_mem D_kd_tree_values
 
cl_mem D_V
 
boost::shared_ptr< LBKdTreekd_tree_gen
 
LBPointArray< unsigned char > * kd_tree_splits
 
LBPointArray< float > * kd_tree_values
 
cl_command_queue m_command_queue
 
cl_context m_context
 
cl_ulong m_device_global_memory
 
cl_device_id m_device_id
 
LBPointArray< float > m_distances
 
int m_k
 
cl_kernel m_kernel_sor
 
double m_mean_
 
cl_uint m_mps
 
double m_mult_
 
cl_platform_id m_platform_id
 
cl_program m_program_es
 
cl_program m_program_in
 
cl_int m_ret
 
double m_std_dev_
 
cl_uint m_threads_per_block
 
const char * SOR_KERNEL_STRING
 
LBPointArray< float > V
 

Detailed Description

Definition at line 64 of file ClStatisticalOutlierFilter.hpp.

Constructor & Destructor Documentation

◆ ClSOR()

lvr2::ClSOR::ClSOR ( floatArr points,
size_t  num_points,
int  k,
int  device = 0 
)

Definition at line 34 of file ClStatisticalOutlierFilter.cpp.

◆ ~ClSOR()

lvr2::ClSOR::~ClSOR ( )

Definition at line 55 of file ClStatisticalOutlierFilter.cpp.

Member Function Documentation

◆ calcDistances()

void lvr2::ClSOR::calcDistances ( )

Definition at line 62 of file ClStatisticalOutlierFilter.cpp.

◆ calcStatistics()

void lvr2::ClSOR::calcStatistics ( )

Definition at line 149 of file ClStatisticalOutlierFilter.cpp.

◆ finalizeCl()

void lvr2::ClSOR::finalizeCl ( )
private

Definition at line 239 of file ClStatisticalOutlierFilter.cpp.

◆ freeGPU()

void lvr2::ClSOR::freeGPU ( )

Definition at line 192 of file ClStatisticalOutlierFilter.cpp.

◆ getDeviceInformation()

void lvr2::ClSOR::getDeviceInformation ( int  platform_id = 0,
int  device_id = 0 
)
private

Definition at line 379 of file ClStatisticalOutlierFilter.cpp.

◆ getErrorString()

const char * lvr2::ClSOR::getErrorString ( cl_int  error)
private

Definition at line 301 of file ClStatisticalOutlierFilter.cpp.

◆ getInliers()

int lvr2::ClSOR::getInliers ( lvr2::indexArray inliers)

Definition at line 170 of file ClStatisticalOutlierFilter.cpp.

◆ init()

void lvr2::ClSOR::init ( )
private

◆ initCl()

void lvr2::ClSOR::initCl ( )
private

Definition at line 225 of file ClStatisticalOutlierFilter.cpp.

◆ initKdTree()

void lvr2::ClSOR::initKdTree ( )
private

PRIVATE ///.

Definition at line 217 of file ClStatisticalOutlierFilter.cpp.

◆ loadSORKernel()

void lvr2::ClSOR::loadSORKernel ( )
private

Definition at line 258 of file ClStatisticalOutlierFilter.cpp.

◆ setK()

void lvr2::ClSOR::setK ( int  k)

Set the number of k nearest neighbors k-neighborhood.

Parameters
kThe size of the used k-neighborhood

Definition at line 184 of file ClStatisticalOutlierFilter.cpp.

◆ setMult()

void lvr2::ClSOR::setMult ( float  std_dev_mult)
inline

Definition at line 78 of file ClStatisticalOutlierFilter.hpp.

Member Data Documentation

◆ D_Distances

cl_mem lvr2::ClSOR::D_Distances
private

Definition at line 137 of file ClStatisticalOutlierFilter.hpp.

◆ D_kd_tree_splits

cl_mem lvr2::ClSOR::D_kd_tree_splits
private

Definition at line 136 of file ClStatisticalOutlierFilter.hpp.

◆ D_kd_tree_values

cl_mem lvr2::ClSOR::D_kd_tree_values
private

Definition at line 135 of file ClStatisticalOutlierFilter.hpp.

◆ D_V

cl_mem lvr2::ClSOR::D_V
private

Definition at line 134 of file ClStatisticalOutlierFilter.hpp.

◆ kd_tree_gen

boost::shared_ptr<LBKdTree> lvr2::ClSOR::kd_tree_gen
private

Definition at line 115 of file ClStatisticalOutlierFilter.hpp.

◆ kd_tree_splits

LBPointArray<unsigned char>* lvr2::ClSOR::kd_tree_splits
private

Definition at line 111 of file ClStatisticalOutlierFilter.hpp.

◆ kd_tree_values

LBPointArray<float>* lvr2::ClSOR::kd_tree_values
private

Definition at line 110 of file ClStatisticalOutlierFilter.hpp.

◆ m_command_queue

cl_command_queue lvr2::ClSOR::m_command_queue
private

Definition at line 128 of file ClStatisticalOutlierFilter.hpp.

◆ m_context

cl_context lvr2::ClSOR::m_context
private

Definition at line 127 of file ClStatisticalOutlierFilter.hpp.

◆ m_device_global_memory

cl_ulong lvr2::ClSOR::m_device_global_memory
private

Definition at line 125 of file ClStatisticalOutlierFilter.hpp.

◆ m_device_id

cl_device_id lvr2::ClSOR::m_device_id
private

Definition at line 122 of file ClStatisticalOutlierFilter.hpp.

◆ m_distances

LBPointArray<float> lvr2::ClSOR::m_distances
private

Definition at line 114 of file ClStatisticalOutlierFilter.hpp.

◆ m_k

int lvr2::ClSOR::m_k
private

Definition at line 104 of file ClStatisticalOutlierFilter.hpp.

◆ m_kernel_sor

cl_kernel lvr2::ClSOR::m_kernel_sor
private

Definition at line 131 of file ClStatisticalOutlierFilter.hpp.

◆ m_mean_

double lvr2::ClSOR::m_mean_
private

Definition at line 106 of file ClStatisticalOutlierFilter.hpp.

◆ m_mps

cl_uint lvr2::ClSOR::m_mps
private

Definition at line 123 of file ClStatisticalOutlierFilter.hpp.

◆ m_mult_

double lvr2::ClSOR::m_mult_
private

Definition at line 105 of file ClStatisticalOutlierFilter.hpp.

◆ m_platform_id

cl_platform_id lvr2::ClSOR::m_platform_id
private

Definition at line 121 of file ClStatisticalOutlierFilter.hpp.

◆ m_program_es

cl_program lvr2::ClSOR::m_program_es
private

Definition at line 129 of file ClStatisticalOutlierFilter.hpp.

◆ m_program_in

cl_program lvr2::ClSOR::m_program_in
private

Definition at line 130 of file ClStatisticalOutlierFilter.hpp.

◆ m_ret

cl_int lvr2::ClSOR::m_ret
private

Definition at line 126 of file ClStatisticalOutlierFilter.hpp.

◆ m_std_dev_

double lvr2::ClSOR::m_std_dev_
private

Definition at line 107 of file ClStatisticalOutlierFilter.hpp.

◆ m_threads_per_block

cl_uint lvr2::ClSOR::m_threads_per_block
private

Definition at line 124 of file ClStatisticalOutlierFilter.hpp.

◆ SOR_KERNEL_STRING

const char* lvr2::ClSOR::SOR_KERNEL_STRING
private

Definition at line 140 of file ClStatisticalOutlierFilter.hpp.

◆ V

LBPointArray<float> lvr2::ClSOR::V
private

Definition at line 109 of file ClStatisticalOutlierFilter.hpp.


The documentation for this class was generated from the following files:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:27