Generic implementation for creating 2D integral images (including second order integral images). More...
#include <integral_image_2d.h>
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_ |
Generic implementation for creating 2D integral images (including second order integral images).
Definition at line 50 of file integral_image_2d.h.
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.
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.
pcl::IntegralImage2D< DataType, IIDataType >::~IntegralImage2D | ( | ) | [inline, virtual] |
Destructor.
Definition at line 85 of file integral_image_2d.hpp.
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.
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.
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.
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.
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.
int pcl::IntegralImage2D< DataType, IIDataType >::dimensions_ [protected] |
number of dimensions of each element
Definition at line 104 of file integral_image_2d.h.
int pcl::IntegralImage2D< DataType, IIDataType >::element_stride_ [protected] |
number of DataType entries per element
Definition at line 106 of file integral_image_2d.h.
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.
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.
int pcl::IntegralImage2D< DataType, IIDataType >::row_stride_ [protected] |
number of DataType entries per row
Definition at line 108 of file integral_image_2d.h.
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.
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.