|
Point Cloud Library (PCL)
1.5.1
|
Determines an integral image representation for a given organized data array. More...
#include <pcl/features/integral_image2D.h>
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 | |
| IntegralImage2D (bool compute_second_order_integral_images) | |
| Constructor for an Integral Image. | |
| virtual | ~IntegralImage2D () |
| Destructor. | |
| void | setSecondOrderComputation (bool compute_second_order_integral_images) |
| sets the computation for second order integral images on or off. | |
| 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. | |
| ElementType | getFirstOrderSum (unsigned start_x, unsigned start_y, unsigned width, unsigned height) 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. | |
| unsigned | getFiniteElementsCount (unsigned start_x, unsigned start_y, unsigned width, unsigned height) const |
| Compute the number of finite elements within a given rectangle. | |
| 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) | |
| Constructor. | |
| virtual | ~IntegralImage2D () |
| Destructor. | |
| IIDataType | getSum (const int start_x, const int start_y, const int width, const int height, const int dimension_index) |
| Computes the sum of the "dimension_index"-th dimension of the elements within the specified area. | |
| 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) |
| 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. | |
Static Public Attributes | |
| static const unsigned | second_order_size = (Dimension * (Dimension + 1)) >> 1 |
Determines an integral image representation for a given organized data array.
Generic implementation for creating 2D integral images (including second order integral images).
Definition at line 106 of file integral_image2D.h.
| typedef Eigen::Matrix<typename IntegralImageTypeTraits<DataType>::IntegralType, Dimension, 1> pcl::IntegralImage2D< DataType, Dimension >::ElementType |
Definition at line 110 of file integral_image2D.h.
| 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.
| pcl::IntegralImage2D< DataType, Dimension >::IntegralImage2D | ( | bool | compute_second_order_integral_images | ) | [inline] |
Constructor for an Integral Image.
| [in] | compute_second_order_integral_images | set to true if we want to compute a second order image |
Definition at line 116 of file integral_image2D.h.
| pcl::IntegralImage2D< DataType, IIDataType >::~IntegralImage2D | ( | ) | [inline, virtual] |
Destructor.
Definition at line 125 of file integral_image2D.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 | ||
| ) |
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 41 of file integral_image_2d.hpp.
| virtual pcl::IntegralImage2D< DataType, Dimension >::~IntegralImage2D | ( | ) | [virtual] |
Destructor.
| 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.
| [in] | start_x | x position of rectangle |
| [in] | start_y | y position of rectangle |
| [in] | width | width of rectangle |
| [in] | height | height of rectangle |
Definition at line 97 of file integral_image2D.hpp.
| 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.
| [in] | start_x | x position of rectangle |
| [in] | start_y | y position of rectangle |
| [in] | width | width of rectangle |
| [in] | height | height of rectangle |
Definition at line 69 of file integral_image2D.hpp.
| 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.
| [in] | start_x | x position of rectangle |
| [in] | start_y | y position of rectangle |
| [in] | width | width of rectangle |
| [in] | height | height of rectangle |
Definition at line 83 of file integral_image2D.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 | ||
| ) |
Computes the sum of the "dimension_index"-th dimension of the elements within the specified area.
Definition at line 105 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 | ||
| ) |
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 125 of file integral_image_2d.hpp.
| 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.
| [in] | data | the input data |
| [in] | width | the width of the data |
| [in] | height | the height of the data |
| [in] | element_stride | the element stride of the data |
| [in] | row_stride | the row stride of the data |
Definition at line 53 of file integral_image2D.hpp.
| void pcl::IntegralImage2D< DataType, Dimension >::setSecondOrderComputation | ( | bool | compute_second_order_integral_images | ) |
sets the computation for second order integral images on or off.
| compute_second_order_integral_images |
Definition at line 46 of file integral_image2D.hpp.
const unsigned pcl::IntegralImage2D< DataType, Dimension >::second_order_size = (Dimension * (Dimension + 1)) >> 1 [static] |
Definition at line 109 of file integral_image2D.h.
1.8.0