ITK  5.3.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
itk::BarycentricCombination< TPointContainer, TWeightContainer > Class Template Reference

#include <itkPoint.h>

Public Types

using PointContainerPointer = typename PointContainerType::Pointer
 
using PointContainerType = TPointContainer
 
using PointType = typename PointContainerType::Element
 
using WeightContainerType = TWeightContainer
 

Public Member Functions

 BarycentricCombination ()=default
 
 ~BarycentricCombination ()=default
 

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 336 of file itkPoint.h.

Member Typedef Documentation

◆ PointContainerPointer

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

Definition at line 342 of file itkPoint.h.

◆ PointContainerType

template<typename TPointContainer , typename TWeightContainer >
using itk::BarycentricCombination< TPointContainer, TWeightContainer >::PointContainerType = TPointContainer

Convenient type alias.

Definition at line 341 of file itkPoint.h.

◆ PointType

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

Definition at line 343 of file itkPoint.h.

◆ WeightContainerType

template<typename TPointContainer , typename TWeightContainer >
using itk::BarycentricCombination< TPointContainer, TWeightContainer >::WeightContainerType = TWeightContainer

Definition at line 344 of file itkPoint.h.

Constructor & Destructor Documentation

◆ BarycentricCombination()

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

◆ ~BarycentricCombination()

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

Member Function Documentation

◆ Evaluate()

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

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