partial template specialization for integral images with just one channel. More...
#include <integral_image2D.h>
Public Types | |
typedef IntegralImageTypeTraits < DataType >::IntegralType | ElementType |
typedef IntegralImageTypeTraits < DataType >::IntegralType | 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. | |
virtual | ~IntegralImage2D () |
Destructor. | |
Static Public Attributes | |
static const unsigned | second_order_size = 1 |
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. |
partial template specialization for integral images with just one channel.
Definition at line 229 of file integral_image2D.h.
typedef IntegralImageTypeTraits<DataType>::IntegralType pcl::IntegralImage2D< DataType, 1 >::ElementType |
Definition at line 233 of file integral_image2D.h.
typedef IntegralImageTypeTraits<DataType>::IntegralType pcl::IntegralImage2D< DataType, 1 >::SecondOrderType |
Definition at line 234 of file integral_image2D.h.
pcl::IntegralImage2D< DataType, 1 >::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 239 of file integral_image2D.h.
virtual pcl::IntegralImage2D< DataType, 1 >::~IntegralImage2D | ( | ) | [inline, virtual] |
Destructor.
Definition at line 250 of file integral_image2D.h.
void pcl::IntegralImage2D< DataType, 1 >::computeIntegralImages | ( | const DataType * | data, |
unsigned | row_stride, | ||
unsigned | element_stride | ||
) | [private] |
Compute the actual integral image data.
[in] | data | the input data |
[in] | element_stride | the element stride of the data |
[in] | row_stride | the row stride of the data |
Definition at line 323 of file integral_image2D.hpp.
unsigned pcl::IntegralImage2D< DataType, 1 >::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 267 of file integral_image2D.hpp.
unsigned pcl::IntegralImage2D< DataType, 1 >::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.
[in] | start_x | x position of the start of the rectangle |
[in] | start_y | x position of the start of the rectangle |
[in] | end_x | x position of the end of the rectangle |
[in] | end_y | x position of the end of the rectangle |
Definition at line 309 of file integral_image2D.hpp.
pcl::IntegralImage2D< DataType, 1 >::ElementType pcl::IntegralImage2D< DataType, 1 >::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 239 of file integral_image2D.hpp.
pcl::IntegralImage2D< DataType, 1 >::ElementType pcl::IntegralImage2D< DataType, 1 >::getFirstOrderSumSE | ( | unsigned | start_x, |
unsigned | start_y, | ||
unsigned | end_x, | ||
unsigned | end_y | ||
) | const [inline] |
Compute the first order sum within a given rectangle.
[in] | start_x | x position of the start of the rectangle |
[in] | start_y | x position of the start of the rectangle |
[in] | end_x | x position of the end of the rectangle |
[in] | end_y | x position of the end of the rectangle |
Definition at line 281 of file integral_image2D.hpp.
pcl::IntegralImage2D< DataType, 1 >::SecondOrderType pcl::IntegralImage2D< DataType, 1 >::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 253 of file integral_image2D.hpp.
pcl::IntegralImage2D< DataType, 1 >::SecondOrderType pcl::IntegralImage2D< DataType, 1 >::getSecondOrderSumSE | ( | unsigned | start_x, |
unsigned | start_y, | ||
unsigned | end_x, | ||
unsigned | end_y | ||
) | const [inline] |
Compute the second order sum within a given rectangle.
[in] | start_x | x position of the start of the rectangle |
[in] | start_y | x position of the start of the rectangle |
[in] | end_x | x position of the end of the rectangle |
[in] | end_y | x position of the end of the rectangle |
Definition at line 295 of file integral_image2D.hpp.
void pcl::IntegralImage2D< DataType, 1 >::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 223 of file integral_image2D.hpp.
bool pcl::IntegralImage2D< DataType, 1 >::compute_second_order_integral_images_ [private] |
Indicates whether second order integral images are available.
Definition at line 338 of file integral_image2D.h.
std::vector<unsigned> pcl::IntegralImage2D< DataType, 1 >::finite_values_integral_image_ [private] |
Definition at line 330 of file integral_image2D.h.
std::vector<ElementType, Eigen::aligned_allocator<ElementType> > pcl::IntegralImage2D< DataType, 1 >::first_order_integral_image_ [private] |
Definition at line 328 of file integral_image2D.h.
unsigned pcl::IntegralImage2D< DataType, 1 >::height_ [private] |
The height of the 2d input data array.
Definition at line 335 of file integral_image2D.h.
std::vector<SecondOrderType, Eigen::aligned_allocator<SecondOrderType> > pcl::IntegralImage2D< DataType, 1 >::second_order_integral_image_ [private] |
Definition at line 329 of file integral_image2D.h.
const unsigned pcl::IntegralImage2D< DataType, 1 >::second_order_size = 1 [static] |
Definition at line 232 of file integral_image2D.h.
unsigned pcl::IntegralImage2D< DataType, 1 >::width_ [private] |
The width of the 2d input data array.
Definition at line 333 of file integral_image2D.h.