Public Types | Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes
pcl::IntegralImage2D< DataType, Dimension > Class Template Reference

Determines an integral image representation for a given organized data array. More...

#include <integral_image2D.h>

List of all members.

Public Types

typedef Eigen::Matrix
< typename
IntegralImageTypeTraits
< DataType >::IntegralType,
Dimension, 1 > 
ElementType
typedef Eigen::Matrix
< typename
IntegralImageTypeTraits
< DataType >::IntegralType,
second_order_size, 1 > 
SecondOrderType

Public Member Functions

unsigned getFiniteElementsCount (unsigned start_x, unsigned start_y, unsigned width, unsigned height) const
 Compute the number of finite elements within a given rectangle.
unsigned getFiniteElementsCountSE (unsigned start_x, unsigned start_y, unsigned end_x, unsigned end_y) const
 Compute the number of finite elements within a given rectangle.
ElementType getFirstOrderSum (unsigned start_x, unsigned start_y, unsigned width, unsigned height) const
 Compute the first order sum within a given rectangle.
ElementType getFirstOrderSumSE (unsigned start_x, unsigned start_y, unsigned end_x, unsigned end_y) const
 Compute the first order sum within a given rectangle.
SecondOrderType getSecondOrderSum (unsigned start_x, unsigned start_y, unsigned width, unsigned height) const
 Compute the second order sum within a given rectangle.
SecondOrderType getSecondOrderSumSE (unsigned start_x, unsigned start_y, unsigned end_x, unsigned end_y) const
 Compute the second order sum within a given rectangle.
 IntegralImage2D (bool compute_second_order_integral_images)
 Constructor for an Integral Image.
void setInput (const DataType *data, unsigned width, unsigned height, unsigned element_stride, unsigned row_stride)
 Set the input data to compute the integral image for.
void setSecondOrderComputation (bool compute_second_order_integral_images)
 sets the computation for second order integral images on or off.
virtual ~IntegralImage2D ()
 Destructor.

Static Public Attributes

static const unsigned second_order_size = (Dimension * (Dimension + 1)) >> 1

Private Types

typedef Eigen::Matrix
< typename
IntegralImageTypeTraits
< DataType >::Type, Dimension, 1 > 
InputType

Private Member Functions

void computeIntegralImages (const DataType *data, unsigned row_stride, unsigned element_stride)
 Compute the actual integral image data.

Private Attributes

bool compute_second_order_integral_images_
 Indicates whether second order integral images are available.
std::vector< unsigned > finite_values_integral_image_
std::vector< ElementType,
Eigen::aligned_allocator
< ElementType > > 
first_order_integral_image_
unsigned height_
 The height of the 2d input data array.
std::vector< SecondOrderType,
Eigen::aligned_allocator
< SecondOrderType > > 
second_order_integral_image_
unsigned width_
 The width of the 2d input data array.

Detailed Description

template<class DataType, unsigned Dimension>
class pcl::IntegralImage2D< DataType, Dimension >

Determines an integral image representation for a given organized data array.

Author:
Suat Gedikli

Definition at line 106 of file integral_image2D.h.


Member Typedef Documentation

template<class DataType, unsigned Dimension>
typedef Eigen::Matrix<typename IntegralImageTypeTraits<DataType>::IntegralType, Dimension, 1> pcl::IntegralImage2D< DataType, Dimension >::ElementType

Definition at line 110 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
typedef Eigen::Matrix<typename IntegralImageTypeTraits<DataType>::Type, Dimension, 1> pcl::IntegralImage2D< DataType, Dimension >::InputType [private]

Definition at line 202 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
typedef Eigen::Matrix<typename IntegralImageTypeTraits<DataType>::IntegralType, second_order_size, 1> pcl::IntegralImage2D< DataType, Dimension >::SecondOrderType

Definition at line 111 of file integral_image2D.h.


Constructor & Destructor Documentation

template<class DataType, unsigned Dimension>
pcl::IntegralImage2D< DataType, Dimension >::IntegralImage2D ( bool  compute_second_order_integral_images) [inline]

Constructor for an Integral Image.

Parameters:
[in]compute_second_order_integral_imagesset to true if we want to compute a second order image

Definition at line 116 of file integral_image2D.h.

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

Destructor.

Definition at line 128 of file integral_image2D.h.


Member Function Documentation

template<typename DataType, unsigned Dimension>
void pcl::IntegralImage2D< DataType, Dimension >::computeIntegralImages ( const DataType *  data,
unsigned  row_stride,
unsigned  element_stride 
) [private]

Compute the actual integral image data.

Parameters:
[in]datathe input data
[in]element_stridethe element stride of the data
[in]row_stridethe row stride of the data

Definition at line 153 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
unsigned pcl::IntegralImage2D< DataType, Dimension >::getFiniteElementsCount ( unsigned  start_x,
unsigned  start_y,
unsigned  width,
unsigned  height 
) const [inline]

Compute the number of finite elements within a given rectangle.

Parameters:
[in]start_xx position of rectangle
[in]start_yy position of rectangle
[in]widthwidth of rectangle
[in]heightheight of rectangle

Definition at line 97 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
unsigned pcl::IntegralImage2D< DataType, Dimension >::getFiniteElementsCountSE ( unsigned  start_x,
unsigned  start_y,
unsigned  end_x,
unsigned  end_y 
) const [inline]

Compute the number of finite elements within a given rectangle.

Parameters:
[in]start_xx position of the start of the rectangle
[in]start_yx position of the start of the rectangle
[in]end_xx position of the end of the rectangle
[in]end_yx position of the end of the rectangle

Definition at line 139 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
pcl::IntegralImage2D< DataType, Dimension >::ElementType pcl::IntegralImage2D< DataType, Dimension >::getFirstOrderSum ( unsigned  start_x,
unsigned  start_y,
unsigned  width,
unsigned  height 
) const [inline]

Compute the first order sum within a given rectangle.

Parameters:
[in]start_xx position of rectangle
[in]start_yy position of rectangle
[in]widthwidth of rectangle
[in]heightheight of rectangle

Definition at line 69 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
pcl::IntegralImage2D< DataType, Dimension >::ElementType pcl::IntegralImage2D< DataType, Dimension >::getFirstOrderSumSE ( unsigned  start_x,
unsigned  start_y,
unsigned  end_x,
unsigned  end_y 
) const [inline]

Compute the first order sum within a given rectangle.

Parameters:
[in]start_xx position of the start of the rectangle
[in]start_yx position of the start of the rectangle
[in]end_xx position of the end of the rectangle
[in]end_yx position of the end of the rectangle

Definition at line 111 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
pcl::IntegralImage2D< DataType, Dimension >::SecondOrderType pcl::IntegralImage2D< DataType, Dimension >::getSecondOrderSum ( unsigned  start_x,
unsigned  start_y,
unsigned  width,
unsigned  height 
) const [inline]

Compute the second order sum within a given rectangle.

Parameters:
[in]start_xx position of rectangle
[in]start_yy position of rectangle
[in]widthwidth of rectangle
[in]heightheight of rectangle

Definition at line 83 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
pcl::IntegralImage2D< DataType, Dimension >::SecondOrderType pcl::IntegralImage2D< DataType, Dimension >::getSecondOrderSumSE ( unsigned  start_x,
unsigned  start_y,
unsigned  end_x,
unsigned  end_y 
) const [inline]

Compute the second order sum within a given rectangle.

Parameters:
[in]start_xx position of the start of the rectangle
[in]start_yx position of the start of the rectangle
[in]end_xx position of the end of the rectangle
[in]end_yx position of the end of the rectangle

Definition at line 125 of file integral_image2D.hpp.

template<typename DataType, unsigned Dimension>
void pcl::IntegralImage2D< DataType, Dimension >::setInput ( const DataType *  data,
unsigned  width,
unsigned  height,
unsigned  element_stride,
unsigned  row_stride 
)

Set the input data to compute the integral image for.

Parameters:
[in]datathe input data
[in]widththe width of the data
[in]heightthe height of the data
[in]element_stridethe element stride of the data
[in]row_stridethe row stride of the data

Definition at line 53 of file integral_image2D.hpp.

template<typename DataType , unsigned Dimension>
void pcl::IntegralImage2D< DataType, Dimension >::setSecondOrderComputation ( bool  compute_second_order_integral_images)

sets the computation for second order integral images on or off.

Parameters:
compute_second_order_integral_images

Definition at line 46 of file integral_image2D.hpp.


Member Data Documentation

template<class DataType, unsigned Dimension>
bool pcl::IntegralImage2D< DataType, Dimension >::compute_second_order_integral_images_ [private]

Indicates whether second order integral images are available.

Definition at line 222 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
std::vector<unsigned> pcl::IntegralImage2D< DataType, Dimension >::finite_values_integral_image_ [private]

Definition at line 214 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
std::vector<ElementType, Eigen::aligned_allocator<ElementType> > pcl::IntegralImage2D< DataType, Dimension >::first_order_integral_image_ [private]

Definition at line 212 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
unsigned pcl::IntegralImage2D< DataType, Dimension >::height_ [private]

The height of the 2d input data array.

Definition at line 219 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
std::vector<SecondOrderType, Eigen::aligned_allocator<SecondOrderType> > pcl::IntegralImage2D< DataType, Dimension >::second_order_integral_image_ [private]

Definition at line 213 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
const unsigned pcl::IntegralImage2D< DataType, Dimension >::second_order_size = (Dimension * (Dimension + 1)) >> 1 [static]

Definition at line 109 of file integral_image2D.h.

template<class DataType, unsigned Dimension>
unsigned pcl::IntegralImage2D< DataType, Dimension >::width_ [private]

The width of the 2d input data array.

Definition at line 217 of file integral_image2D.h.


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


pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:19:30