Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions
pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS > Class Template Reference

Holds two-dimensional multi-channel data. More...

#include <pcl/ml/multi_channel_2d_data_set.h>

Public Member Functions

 MultiChannel2DData ()
 Constructor. More...
 
virtual ~MultiChannel2DData ()
 Destructor. More...
 
void resize (size_t width, size_t height)
 Resizes the internal data storage. More...
 
void clear ()
 Clears the internal data storage and sets width and height to 0. More...
 
DATA_TYPE * operator() (const size_t col_index, const size_t row_index)
 Returns a pointer to the internal data at the specified location. More...
 
const DATA_TYPE * operator() (const size_t col_index, const size_t row_index) const
 Returns a pointer to the internal data at the specified location. More...
 
DATA_TYPE & operator() (const size_t col_index, const size_t row_index, const size_t channel)
 Returns a reference to the internal data at the specified location. More...
 
const DATA_TYPE & operator() (const size_t col_index, const size_t row_index, const size_t channel) const
 Returns a reference to the internal data at the specified location. More...
 

Detailed Description

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
class pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >

Holds two-dimensional multi-channel data.

Definition at line 50 of file multi_channel_2d_data_set.h.

Constructor & Destructor Documentation

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::MultiChannel2DData ( )
inline

Constructor.

Definition at line 55 of file multi_channel_2d_data_set.h.

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
virtual pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::~MultiChannel2DData ( )
inlinevirtual

Destructor.

Definition at line 57 of file multi_channel_2d_data_set.h.

Member Function Documentation

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
void pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::clear ( )
inline

Clears the internal data storage and sets width and height to 0.

Definition at line 74 of file multi_channel_2d_data_set.h.

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
DATA_TYPE* pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::operator() ( const size_t  col_index,
const size_t  row_index 
)
inline

Returns a pointer to the internal data at the specified location.

Parameters
[in]col_indexThe column index.
[in]row_indexThe row index.

Definition at line 86 of file multi_channel_2d_data_set.h.

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
const DATA_TYPE* pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::operator() ( const size_t  col_index,
const size_t  row_index 
) const
inline

Returns a pointer to the internal data at the specified location.

Parameters
[in]col_indexThe column index.
[in]row_indexThe row index.

Definition at line 96 of file multi_channel_2d_data_set.h.

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
DATA_TYPE& pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::operator() ( const size_t  col_index,
const size_t  row_index,
const size_t  channel 
)
inline

Returns a reference to the internal data at the specified location.

Parameters
[in]col_indexThe column index.
[in]row_indexThe row index.
[in]channelThe channel index.

Definition at line 107 of file multi_channel_2d_data_set.h.

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
const DATA_TYPE& pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::operator() ( const size_t  col_index,
const size_t  row_index,
const size_t  channel 
) const
inline

Returns a reference to the internal data at the specified location.

Parameters
[in]col_indexThe column index.
[in]row_indexThe row index.
[in]channelThe channel index.

Definition at line 118 of file multi_channel_2d_data_set.h.

template<class DATA_TYPE, size_t NUM_OF_CHANNELS>
void pcl::MultiChannel2DData< DATA_TYPE, NUM_OF_CHANNELS >::resize ( size_t  width,
size_t  height 
)
inline

Resizes the internal data storage.

Parameters
[in]widthThe width of the resized 2D data array.
[in]heightThe height of the resized 2D data array.

Definition at line 64 of file multi_channel_2d_data_set.h.

Referenced by pcl::MultiChannel2DDataSet< DATA_TYPE, NUM_OF_CHANNELS >::addData().


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