Point Cloud Library (PCL) 1.12.0
Loading...
Searching...
No Matches
pcl::IntegralImage2D< DataType, 1 > Class Template Reference

partial template specialization for integral images with just one channel. More...

#include <pcl/features/integral_image2D.h>

Public Types

using Ptr = shared_ptr<IntegralImage2D<DataType, 1>>
 
using ConstPtr = shared_ptr<const IntegralImage2D<DataType, 1>>
 
using ElementType = typename IntegralImageTypeTraits<DataType>::IntegralType
 
using SecondOrderType = typename IntegralImageTypeTraits<DataType>::IntegralType
 

Public Member Functions

 IntegralImage2D (bool compute_second_order_integral_images)
 Constructor for an Integral Image.
 
virtual ~IntegralImage2D ()
 Destructor.
 
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.
 
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.
 
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.
 

Static Public Attributes

static const unsigned second_order_size = 1
 

Detailed Description

template<class DataType>
class pcl::IntegralImage2D< DataType, 1 >

partial template specialization for integral images with just one channel.

Definition at line 233 of file integral_image2D.h.

Member Typedef Documentation

◆ ConstPtr

template<class DataType >
using pcl::IntegralImage2D< DataType, 1 >::ConstPtr = shared_ptr<const IntegralImage2D<DataType, 1>>

Definition at line 237 of file integral_image2D.h.

◆ ElementType

template<class DataType >
using pcl::IntegralImage2D< DataType, 1 >::ElementType = typename IntegralImageTypeTraits<DataType>::IntegralType

Definition at line 240 of file integral_image2D.h.

◆ Ptr

template<class DataType >
using pcl::IntegralImage2D< DataType, 1 >::Ptr = shared_ptr<IntegralImage2D<DataType, 1>>

Definition at line 236 of file integral_image2D.h.

◆ SecondOrderType

template<class DataType >
using pcl::IntegralImage2D< DataType, 1 >::SecondOrderType = typename IntegralImageTypeTraits<DataType>::IntegralType

Definition at line 241 of file integral_image2D.h.

Constructor & Destructor Documentation

◆ IntegralImage2D()

template<class DataType >
pcl::IntegralImage2D< DataType, 1 >::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 246 of file integral_image2D.h.

◆ ~IntegralImage2D()

template<class DataType >
virtual pcl::IntegralImage2D< DataType, 1 >::~IntegralImage2D ( )
inlinevirtual

Destructor.

Definition at line 257 of file integral_image2D.h.

Member Function Documentation

◆ getFiniteElementsCount()

template<typename DataType >
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.

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

Definition at line 269 of file integral_image2D.hpp.

◆ getFiniteElementsCountSE()

template<typename DataType >
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.

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 311 of file integral_image2D.hpp.

◆ getFirstOrderSum()

template<typename DataType >
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.

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

Definition at line 241 of file integral_image2D.hpp.

◆ getFirstOrderSumSE()

template<typename DataType >
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.

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 283 of file integral_image2D.hpp.

◆ getSecondOrderSum()

template<typename DataType >
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.

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

Definition at line 255 of file integral_image2D.hpp.

◆ getSecondOrderSumSE()

template<typename DataType >
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.

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 297 of file integral_image2D.hpp.

◆ setInput()

template<typename DataType >
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.

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 225 of file integral_image2D.hpp.

Member Data Documentation

◆ second_order_size

template<class DataType >
const unsigned pcl::IntegralImage2D< DataType, 1 >::second_order_size = 1
static

Definition at line 239 of file integral_image2D.h.


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