Point Cloud Library (PCL)  1.11.1-dev
List of all members | Public Member Functions | Public Attributes
pcl::QuantizedNormalLookUpTable Struct Reference

Look-up-table for fast surface normal quantization. More...

#include <pcl/recognition/surface_normal_modality.h>

Public Member Functions

 QuantizedNormalLookUpTable ()
 Constructor. More...
 
 ~QuantizedNormalLookUpTable ()
 Destructor. More...
 
void initializeLUT (const int range_x_arg, const int range_y_arg, const int range_z_arg)
 Initializes the LUT. More...
 
unsigned char operator() (const float x, const float y, const float z) const
 Operator to access an element in the LUT. More...
 
unsigned char operator() (const int index) const
 Operator to access an element in the LUT. More...
 

Public Attributes

int range_x
 The range of the LUT in x-direction. More...
 
int range_y
 The range of the LUT in y-direction. More...
 
int range_z
 The range of the LUT in z-direction. More...
 
int offset_x
 The offset in x-direction. More...
 
int offset_y
 The offset in y-direction. More...
 
int offset_z
 The offset in z-direction. More...
 
int size_x
 The size of the LUT in x-direction. More...
 
int size_y
 The size of the LUT in y-direction. More...
 
int size_z
 The size of the LUT in z-direction. More...
 
unsigned char * lut
 The LUT data. More...
 

Detailed Description

Look-up-table for fast surface normal quantization.

Author
Stefan Holzer

Definition at line 132 of file surface_normal_modality.h.

Constructor & Destructor Documentation

◆ QuantizedNormalLookUpTable()

pcl::QuantizedNormalLookUpTable::QuantizedNormalLookUpTable ( )
inline

Constructor.

Definition at line 159 of file surface_normal_modality.h.

◆ ~QuantizedNormalLookUpTable()

pcl::QuantizedNormalLookUpTable::~QuantizedNormalLookUpTable ( )
inline

Destructor.

Definition at line 166 of file surface_normal_modality.h.

References lut.

Member Function Documentation

◆ initializeLUT()

void pcl::QuantizedNormalLookUpTable::initializeLUT ( const int  range_x_arg,
const int  range_y_arg,
const int  range_z_arg 
)
inline

Initializes the LUT.

Parameters
[in]range_x_argthe range of the LUT in x-direction.
[in]range_y_argthe range of the LUT in y-direction.
[in]range_z_argthe range of the LUT in z-direction.

Definition at line 177 of file surface_normal_modality.h.

References lut, M_PI, offset_x, offset_y, offset_z, range_x, range_y, range_z, size_x, size_y, and size_z.

◆ operator()() [1/2]

unsigned char pcl::QuantizedNormalLookUpTable::operator() ( const float  x,
const float  y,
const float  z 
) const
inline

Operator to access an element in the LUT.

Parameters
[in]xthe x-component of the normal.
[in]ythe y-component of the normal.
[in]zthe z-component of the normal.

Definition at line 273 of file surface_normal_modality.h.

References lut, offset_x, offset_y, range_z, size_x, and size_y.

◆ operator()() [2/2]

unsigned char pcl::QuantizedNormalLookUpTable::operator() ( const int  index) const
inline

Operator to access an element in the LUT.

Parameters
[in]indexthe index of the element.

Definition at line 288 of file surface_normal_modality.h.

References lut.

Member Data Documentation

◆ lut

unsigned char* pcl::QuantizedNormalLookUpTable::lut

The LUT data.

Definition at line 156 of file surface_normal_modality.h.

Referenced by initializeLUT(), operator()(), and ~QuantizedNormalLookUpTable().

◆ offset_x

int pcl::QuantizedNormalLookUpTable::offset_x

The offset in x-direction.

Definition at line 142 of file surface_normal_modality.h.

Referenced by initializeLUT(), and operator()().

◆ offset_y

int pcl::QuantizedNormalLookUpTable::offset_y

The offset in y-direction.

Definition at line 144 of file surface_normal_modality.h.

Referenced by initializeLUT(), and operator()().

◆ offset_z

int pcl::QuantizedNormalLookUpTable::offset_z

The offset in z-direction.

Definition at line 146 of file surface_normal_modality.h.

Referenced by initializeLUT().

◆ range_x

int pcl::QuantizedNormalLookUpTable::range_x

The range of the LUT in x-direction.

Definition at line 135 of file surface_normal_modality.h.

Referenced by initializeLUT().

◆ range_y

int pcl::QuantizedNormalLookUpTable::range_y

The range of the LUT in y-direction.

Definition at line 137 of file surface_normal_modality.h.

Referenced by initializeLUT().

◆ range_z

int pcl::QuantizedNormalLookUpTable::range_z

The range of the LUT in z-direction.

Definition at line 139 of file surface_normal_modality.h.

Referenced by initializeLUT(), and operator()().

◆ size_x

int pcl::QuantizedNormalLookUpTable::size_x

The size of the LUT in x-direction.

Definition at line 149 of file surface_normal_modality.h.

Referenced by initializeLUT(), and operator()().

◆ size_y

int pcl::QuantizedNormalLookUpTable::size_y

The size of the LUT in y-direction.

Definition at line 151 of file surface_normal_modality.h.

Referenced by initializeLUT(), and operator()().

◆ size_z

int pcl::QuantizedNormalLookUpTable::size_z

The size of the LUT in z-direction.

Definition at line 153 of file surface_normal_modality.h.

Referenced by initializeLUT().


The documentation for this struct was generated from the following file: