49 template <
typename DataType>
108 template <
class DataType,
unsigned Dimension>
122 first_order_integral_image_ (),
123 second_order_integral_image_ (),
206 using InputType = Eigen::Matrix<typename IntegralImageTypeTraits<DataType>::Type,
Dimension, 1>;
216 std::vector<ElementType, Eigen::aligned_allocator<ElementType> > first_order_integral_image_;
217 std::vector<SecondOrderType, Eigen::aligned_allocator<SecondOrderType> > second_order_integral_image_;
218 std::vector<unsigned> finite_values_integral_image_;
226 bool compute_second_order_integral_images_;
232 template <
class DataType>
247 first_order_integral_image_ (),
248 second_order_integral_image_ (),
250 width_ (1), height_ (1),
335 std::vector<ElementType, Eigen::aligned_allocator<ElementType> > first_order_integral_image_;
336 std::vector<SecondOrderType, Eigen::aligned_allocator<SecondOrderType> > second_order_integral_image_;
337 std::vector<unsigned> finite_values_integral_image_;
345 bool compute_second_order_integral_images_;
349#include <pcl/features/impl/integral_image2D.hpp>
Iterator class for point clouds with or without given indices.
typename IntegralImageTypeTraits< DataType >::IntegralType SecondOrderType
virtual ~IntegralImage2D()
Destructor.
IntegralImage2D(bool compute_second_order_integral_images)
Constructor for an Integral Image.
typename IntegralImageTypeTraits< DataType >::IntegralType ElementType
Determines an integral image representation for a given organized data array.
void setSecondOrderComputation(bool compute_second_order_integral_images)
sets the computation for second order integral images on or off.
static const unsigned second_order_size
Eigen::Matrix< typename IntegralImageTypeTraits< DataType >::IntegralType, Dimension, 1 > ElementType
ElementType getFirstOrderSumSE(unsigned start_x, unsigned start_y, unsigned end_x, unsigned end_y) const
Compute the first order sum 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.
virtual ~IntegralImage2D()
Destructor.
unsigned getFiniteElementsCount(unsigned start_x, unsigned start_y, unsigned width, unsigned height) const
Compute the number of finite elements within a given rectangle.
Eigen::Matrix< typename IntegralImageTypeTraits< DataType >::IntegralType, second_order_size, 1 > SecondOrderType
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.
IntegralImage2D(bool compute_second_order_integral_images)
Constructor for an Integral Image.
SecondOrderType getSecondOrderSumSE(unsigned start_x, unsigned start_y, unsigned end_x, unsigned end_y) const
Compute the second 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 getFiniteElementsCountSE(unsigned start_x, unsigned start_y, unsigned end_x, unsigned end_y) const
Compute the number of finite elements within a given rectangle.
Defines functions, macros and traits for allocating and using memory.