Orfeo Toolbox  4.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
itk::BarycentricCombination< TPointContainer, TWeightContainer > Class Template Reference

Computes the barycentric combination of an array of N points. More...

#include <itkPoint.h>

Public Types

typedef PointContainerType::Pointer PointContainerPointer
 
typedef TPointContainer PointContainerType
 
typedef PointContainerType::Element PointType
 
typedef TWeightContainer WeightContainerType
 

Public Member Functions

 BarycentricCombination ()
 
 ~BarycentricCombination ()
 

Static Public Member Functions

static PointType Evaluate (const PointContainerPointer &points, const WeightContainerType &weights)
 

Detailed Description

template<typename TPointContainer, typename TWeightContainer>
class itk::BarycentricCombination< TPointContainer, TWeightContainer >

Computes the barycentric combination of an array of N points.

This class computes the barycentric combination of an array of N points.

An array of (N-1) values is expected to weight the contribution of the first (N-1) points, the weight of the Nth point is computed to ensure that the N weights sum 1.

This method computes:

\[ \overrightarrow{P}= \sum_{i=1}^{N-1} w_i * \overrightarrow{P}_i + \left(1- \sum_{i=1}^{N-1} w_i\right) * \overrightarrow{P}_N \]

The points are expected to be stored in an itkContainer class like itk::VectorContainer, responding to the Begin(), End(), Value() API.

The weights are expected to be stored in any array-like container having a operator[i].

Definition at line 301 of file itkPoint.h.

Member Typedef Documentation

template<typename TPointContainer, typename TWeightContainer>
typedef PointContainerType::Pointer itk::BarycentricCombination< TPointContainer, TWeightContainer >::PointContainerPointer

Definition at line 306 of file itkPoint.h.

template<typename TPointContainer, typename TWeightContainer>
typedef TPointContainer itk::BarycentricCombination< TPointContainer, TWeightContainer >::PointContainerType

Convenient typedefs.

Definition at line 305 of file itkPoint.h.

template<typename TPointContainer, typename TWeightContainer>
typedef PointContainerType::Element itk::BarycentricCombination< TPointContainer, TWeightContainer >::PointType

Definition at line 307 of file itkPoint.h.

template<typename TPointContainer, typename TWeightContainer>
typedef TWeightContainer itk::BarycentricCombination< TPointContainer, TWeightContainer >::WeightContainerType

Definition at line 308 of file itkPoint.h.

Constructor & Destructor Documentation

template<typename TPointContainer, typename TWeightContainer>
itk::BarycentricCombination< TPointContainer, TWeightContainer >::BarycentricCombination ( )
inline

Definition at line 310 of file itkPoint.h.

template<typename TPointContainer, typename TWeightContainer>
itk::BarycentricCombination< TPointContainer, TWeightContainer >::~BarycentricCombination ( )
inline

Definition at line 311 of file itkPoint.h.

Member Function Documentation

template<typename TPointContainer , typename TWeightContainer >
BarycentricCombination< TPointContainer, TWeightContainer >::PointType itk::BarycentricCombination< TPointContainer, TWeightContainer >::Evaluate ( const PointContainerPointer points,
const WeightContainerType weights 
)
static

Set the point to the barycentric combination of N points in a Container

Definition at line 255 of file itkPoint.hxx.


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

Generated at Sat Mar 8 2014 16:37:47 for Orfeo Toolbox with doxygen 1.8.3.1