pcl::IntegralImage2D< DataType, IIDataType > Class Template Reference

Generic implementation for creating 2D integral images (including second order integral images). More...

#include <integral_image_2d.h>

List of all members.

Public Member Functions

IIDataType getSum (const int start_x, const int start_y, const int width, const int height, const int dimension_index_1, const int dimension_index_2)
IIDataType getSum (const int start_x, const int start_y, const int width, const int height, const int dimension_index)
 IntegralImage2D (DataType *data, const int width, const int height, const int dimensions, const bool compute_second_order_integral_images, const int element_stride, const int row_stride)
virtual ~IntegralImage2D ()
 Destructor.

Protected Member Functions

void computeIntegralImages (DataType *data)
void computeIntegralImagesOneDimensional (DataType *data)

Protected Attributes

bool are_second_order_ii_available_
int dimensions_
int element_stride_
std::vector< IIDataType * > first_order_integral_images_
int height_
int row_stride_
std::vector< std::vector
< IIDataType * > > 
second_order_integral_images_
int width_

Detailed Description

template<class DataType, class IIDataType>
class pcl::IntegralImage2D< DataType, IIDataType >

Generic implementation for creating 2D integral images (including second order integral images).

Definition at line 50 of file integral_image_2d.h.


Constructor & Destructor Documentation

template<class DataType, class IIDataType >
pcl::IntegralImage2D< DataType, IIDataType >::IntegralImage2D ( DataType *  data,
const int  width,
const int  height,
const int  dimensions,
const bool  compute_second_order_integral_images,
const int  element_stride,
const int  row_stride 
) [inline]

Constructor. Internally creates the integral images.

Parameters:
data the dense 2d input data array.
width the width of the 2d input data array.
height the height of the 2d input data array.
dimensions number of dimensions of each element.
compute_second_order_integral_images whether to compute second order integral images.
element_stride number of DataType entries per element (equal or bigger than dimensions).
row_stride number of DataType entries per row (equal or bigger than element_stride * number of elements per row).

Definition at line 39 of file integral_image_2d.hpp.

template<class DataType , class IIDataType >
pcl::IntegralImage2D< DataType, IIDataType >::~IntegralImage2D (  )  [inline, virtual]

Destructor.

Definition at line 85 of file integral_image_2d.hpp.


Member Function Documentation

template<class DataType, class IIDataType >
void pcl::IntegralImage2D< DataType, IIDataType >::computeIntegralImages ( DataType *  data  )  [inline, protected]

Computes integral images for multiple dimensions.

Definition at line 142 of file integral_image_2d.hpp.

template<class DataType, class IIDataType >
void pcl::IntegralImage2D< DataType, IIDataType >::computeIntegralImagesOneDimensional ( DataType *  data  )  [inline, protected]

Computes integral image for one dimension.

Definition at line 252 of file integral_image_2d.hpp.

template<class DataType , class IIDataType >
IIDataType pcl::IntegralImage2D< DataType, IIDataType >::getSum ( const int  start_x,
const int  start_y,
const int  width,
const int  height,
const int  dimension_index_1,
const int  dimension_index_2 
) [inline]

Computes the sum of the "dimension_index1"-th dimension of the elements times the "dimension_index2"-th dimension of the elements within the specified area.

Definition at line 123 of file integral_image_2d.hpp.

template<class DataType , class IIDataType >
IIDataType pcl::IntegralImage2D< DataType, IIDataType >::getSum ( const int  start_x,
const int  start_y,
const int  width,
const int  height,
const int  dimension_index 
) [inline]

Computes the sum of the "dimension_index"-th dimension of the elements within the specified area.

Definition at line 103 of file integral_image_2d.hpp.


Member Data Documentation

template<class DataType, class IIDataType>
bool pcl::IntegralImage2D< DataType, IIDataType >::are_second_order_ii_available_ [protected]

indicates whether second order integral images are available

Definition at line 110 of file integral_image_2d.h.

template<class DataType, class IIDataType>
int pcl::IntegralImage2D< DataType, IIDataType >::dimensions_ [protected]

number of dimensions of each element

Definition at line 104 of file integral_image_2d.h.

template<class DataType, class IIDataType>
int pcl::IntegralImage2D< DataType, IIDataType >::element_stride_ [protected]

number of DataType entries per element

Definition at line 106 of file integral_image_2d.h.

template<class DataType, class IIDataType>
std::vector<IIDataType *> pcl::IntegralImage2D< DataType, IIDataType >::first_order_integral_images_ [protected]

first order integral images

Definition at line 113 of file integral_image_2d.h.

template<class DataType, class IIDataType>
int pcl::IntegralImage2D< DataType, IIDataType >::height_ [protected]

the height of the 2d input data array

Definition at line 102 of file integral_image_2d.h.

template<class DataType, class IIDataType>
int pcl::IntegralImage2D< DataType, IIDataType >::row_stride_ [protected]

number of DataType entries per row

Definition at line 108 of file integral_image_2d.h.

template<class DataType, class IIDataType>
std::vector<std::vector <IIDataType*> > pcl::IntegralImage2D< DataType, IIDataType >::second_order_integral_images_ [protected]

second order integral images

Definition at line 115 of file integral_image_2d.h.

template<class DataType, class IIDataType>
int pcl::IntegralImage2D< DataType, IIDataType >::width_ [protected]

the width of the 2d input data array

Definition at line 100 of file integral_image_2d.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


pcl
Author(s): See http://pcl.ros.org/authors for the complete list of authors.
autogenerated on Fri Jan 11 09:57:18 2013