Orfeo Toolbox  4.0
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge > Class Template Reference

Wrapper around a itk::Point in order to add a reference to an entry in the edge ring. More...

#include <itkQuadEdgeMeshPoint.h>

+ Inheritance diagram for itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >:
+ Collaboration diagram for itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >:

Public Types

typedef Superclass::BaseArray BaseArray
 
typedef ValueType CArray [VLength]
 
typedef const ValueTypeconst_pointer
 
typedef const ValueTypeconst_reference
 
typedef Superclass::ConstIterator ConstIterator
 
typedef Superclass::CoordRepType CoordRepType
 
typedef Superclass::Iterator Iterator
 
typedef ValueTypepointer
 
typedef Superclass::RealType RealType
 
typedef ValueTypereference
 
typedef QuadEdgeMeshPoint Self
 
typedef unsigned int SizeType
 
typedef Point< TCoordRep,
VPointDimension > 
Superclass
 
typedef ValueType ValueArrayType [itkGetStaticConstMacro(PointDimension)]
 
typedef Superclass::ValueType ValueType
 
typedef Superclass::VectorType VectorType
 

Public Member Functions

 QuadEdgeMeshPoint ()
 
 QuadEdgeMeshPoint (const Self &r)
 
 QuadEdgeMeshPoint (const Superclass &r)
 
 QuadEdgeMeshPoint (const ValueType r[VPointDimension])
 
virtual ~QuadEdgeMeshPoint ()
 
Iterator Begin ()
 
ConstIterator Begin () const
 
void CastFrom (const Point< TCoordRepB, NPointDimension > &pa)
 
Iterator End ()
 
ConstIterator End () const
 
RealType EuclideanDistanceTo (const Point< TCoordRepB, NPointDimension > &pa) const
 
void Fill (const ValueType &)
 
ValueTypeGetDataPointer ()
 
const ValueTypeGetDataPointer () const
 
TQuadEdge * GetEdge ()
 
TQuadEdge * GetEdge () const
 
const_reference GetElement (unsigned short index) const
 
int GetValence () const
 
VectorType GetVectorFromOrigin () const
 
vnl_vector_ref< TCoordRep > GetVnlVector (void)
 
vnl_vector< TCoordRep > GetVnlVector (void) const
 
bool IsInternal () const
 
 itkLegacyMacro (vnl_vector_ref< TCoordRep > Get_vnl_vector(void))
 
 itkLegacyMacro (vnl_vector< TCoordRep > Get_vnl_vector(void) const)
 
bool operator!= (const Self &pt) const
 
bool operator!= (const FixedArray &r) const
 
Self operator+ (const VectorType &vec) const
 
const Selfoperator+= (const VectorType &vec)
 
VectorType operator- (const Self &pnt) const
 
Self operator- (const VectorType &vec) const
 
const Selfoperator-= (const VectorType &vec)
 
Selfoperator= (const Self &r)
 
Selfoperator= (const Superclass &r)
 
Selfoperator= (const ValueType r[VPointDimension])
 
bool operator== (const Self &pt) const
 
bool operator== (const FixedArray &r) const
 
reference operator[] (short index)
 
const_reference operator[] (short index) const
 
reference operator[] (unsigned short index)
 
const_reference operator[] (unsigned short index) const
 
reference operator[] (int index)
 
const_reference operator[] (int index) const
 
reference operator[] (unsigned int index)
 
const_reference operator[] (unsigned int index) const
 
reference operator[] (long index)
 
const_reference operator[] (long index) const
 
reference operator[] (unsigned long index)
 
const_reference operator[] (unsigned long index) const
 
reference operator[] (long long index)
 
const_reference operator[] (long long index) const
 
reference operator[] (unsigned long long index)
 
const_reference operator[] (unsigned long long index) const
 
ReverseIterator rBegin ()
 
ConstReverseIterator rBegin () const
 
ReverseIterator rEnd ()
 
ConstReverseIterator rEnd () const
 
void SetEdge (TQuadEdge *inputEdge)
 
void SetElement (unsigned short index, const_reference value)
 
void SetPoint (const Superclass &point)
 
void SetToBarycentricCombination (const Self &A, const Self &B, double alpha)
 
void SetToBarycentricCombination (const Self &A, const Self &B, const Self &C, double weightA, double weightB)
 
void SetToBarycentricCombination (const Self *P, const double *weights, unsigned int N)
 
void SetToMidPoint (const Self &, const Self &)
 
SizeType Size () const
 
RealType SquaredEuclideanDistanceTo (const Point< TCoordRepB, NPointDimension > &pa) const
 

Static Public Member Functions

static FixedArray Filled (const ValueType &)
 
static unsigned int GetPointDimension ()
 

Static Public Attributes

static const unsigned int Dimension
 
static const unsigned int Length
 
static const unsigned int PointDimension = VPointDimension
 

Protected Member Functions

void Initialize ()
 

Protected Attributes

TQuadEdge * m_Edge
 

Detailed Description

template<typename TCoordRep, unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
class itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >

Wrapper around a itk::Point in order to add a reference to an entry in the edge ring.

Definition at line 36 of file itkQuadEdgeMeshPoint.h.

Member Typedef Documentation

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::BaseArray itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::BaseArray

Definition at line 50 of file itkQuadEdgeMeshPoint.h.

typedef ValueType itk::FixedArray< TCoordRep , VLength >::CArray[VLength]
inherited

A type representing the C-array version of this FixedArray.

Definition at line 63 of file itkFixedArray.h.

typedef const ValueType* itk::FixedArray< TCoordRep , VLength >::const_pointer
inherited

A const pointer to the ValueType.

Definition at line 121 of file itkFixedArray.h.

typedef const ValueType& itk::FixedArray< TCoordRep , VLength >::const_reference
inherited

A const reference to the ValueType.

Definition at line 127 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::ConstIterator itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::ConstIterator

Definition at line 52 of file itkQuadEdgeMeshPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::CoordRepType itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::CoordRepType

Definition at line 48 of file itkQuadEdgeMeshPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::Iterator itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::Iterator

Definition at line 51 of file itkQuadEdgeMeshPoint.h.

typedef ValueType* itk::FixedArray< TCoordRep , VLength >::pointer
inherited

A pointer to the ValueType.

Definition at line 118 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::RealType itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::RealType

Definition at line 49 of file itkQuadEdgeMeshPoint.h.

typedef ValueType& itk::FixedArray< TCoordRep , VLength >::reference
inherited

A reference to the ValueType.

Definition at line 124 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef QuadEdgeMeshPoint itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::Self

Standard typedefs.

Definition at line 40 of file itkQuadEdgeMeshPoint.h.

typedef unsigned int itk::FixedArray< TCoordRep , VLength >::SizeType
inherited

Definition at line 129 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Point< TCoordRep, VPointDimension > itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::Superclass

Definition at line 41 of file itkQuadEdgeMeshPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef ValueType itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::ValueArrayType[itkGetStaticConstMacro(PointDimension)]

Definition at line 55 of file itkQuadEdgeMeshPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::ValueType itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::ValueType

Definition at line 47 of file itkQuadEdgeMeshPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
typedef Superclass::VectorType itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::VectorType

Definition at line 53 of file itkQuadEdgeMeshPoint.h.

Constructor & Destructor Documentation

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::QuadEdgeMeshPoint ( )

Definition at line 37 of file itkQuadEdgeMeshPoint.hxx.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
virtual itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::~QuadEdgeMeshPoint ( )
inlinevirtual

Definition at line 64 of file itkQuadEdgeMeshPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::QuadEdgeMeshPoint ( const Self r)
template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::QuadEdgeMeshPoint ( const Superclass r)

Definition at line 54 of file itkQuadEdgeMeshPoint.hxx.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::QuadEdgeMeshPoint ( const ValueType  r[VPointDimension])
inline

Member Function Documentation

Iterator itk::FixedArray< TCoordRep , VLength >::Begin ( void  )
inherited

Get various iterators to the array.

Get an Iterator for the beginning of the FixedArray.

ConstIterator itk::FixedArray< TCoordRep , VLength >::Begin ( void  ) const
inherited

Get a ConstIterator for the beginning of the FixedArray.

void itk::Point< TCoordRep, NPointDimension >::CastFrom ( const Point< TCoordRepB, NPointDimension > &  pa)
inlineinherited

Copy from another Point with a different representation type. Casting is done with C-Like rules

Definition at line 228 of file itkPoint.h.

Iterator itk::FixedArray< TCoordRep , VLength >::End ( void  )
inherited

Get an Iterator for the end of the FixedArray.

ConstIterator itk::FixedArray< TCoordRep , VLength >::End ( void  ) const
inherited

Get a ConstIterator for the end of the FixedArray.

RealType itk::Point< TCoordRep, NPointDimension >::EuclideanDistanceTo ( const Point< TCoordRepB, NPointDimension > &  pa) const
inlineinherited

Compute the Euclidean Distance from this point to another point with a different representation type. Casting is done with C-Like rules

Definition at line 258 of file itkPoint.h.

void itk::FixedArray< TCoordRep , VLength >::Fill ( const ValueType &  )
inherited
static FixedArray itk::FixedArray< TCoordRep , VLength >::Filled ( const ValueType &  )
staticinherited

Return an FixedArray with all elements assigned to the given value.

ValueType* itk::FixedArray< TCoordRep , VLength >::GetDataPointer ( )
inlineinherited

Return a pointer to the data.

Definition at line 220 of file itkFixedArray.h.

const ValueType* itk::FixedArray< TCoordRep , VLength >::GetDataPointer ( ) const
inlineinherited

Definition at line 225 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
TQuadEdge * itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::GetEdge ( )

Accessor on m_Edge

Get Edge non-const version

Definition at line 151 of file itkQuadEdgeMeshPoint.hxx.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
TQuadEdge * itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::GetEdge ( ) const

Get Edge

Definition at line 140 of file itkQuadEdgeMeshPoint.hxx.

const_reference itk::FixedArray< TCoordRep , VLength >::GetElement ( unsigned short  index) const
inlineinherited

Definition at line 217 of file itkFixedArray.h.

static unsigned int itk::Point< TCoordRep, NPointDimension >::GetPointDimension ( )
inlinestaticinherited

Get the dimension (size) of the point.

Definition at line 74 of file itkPoint.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
int itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::GetValence ( ) const

FIXME Documentation missing

Return the valence of this QuadEdgeMeshPoint i.e. the number of edges constituting the Onext ring to which this point belongs.

Returns
the valence when an entry in the Onext ring is present, and -1 otherwise.

Definition at line 111 of file itkQuadEdgeMeshPoint.hxx.

VectorType itk::Point< TCoordRep, NPointDimension >::GetVectorFromOrigin ( ) const
inherited

Access an element of a point.

vnl_vector_ref< TCoordRep > itk::Point< TCoordRep, NPointDimension >::GetVnlVector ( void  )
inherited

Get a vnl_vector_ref referencing the same memory block

vnl_vector< TCoordRep > itk::Point< TCoordRep, NPointDimension >::GetVnlVector ( void  ) const
inherited

Get a vnl_vector with a copy of the internal memory block.

Return a vnl_vector const

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
void itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::Initialize ( void  )
protected
template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
bool itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::IsInternal ( ) const

FIXME Documentation missing

Definition at line 95 of file itkQuadEdgeMeshPoint.hxx.

itk::Point< TCoordRep, NPointDimension >::itkLegacyMacro ( vnl_vector_ref< TCoordRep >  Get_vnl_vectorvoid)
inherited

Get a vnl_vector_ref referencing the same memory block

Deprecated:
Use GetVnlVector() instead.
itk::Point< TCoordRep, NPointDimension >::itkLegacyMacro ( vnl_vector< TCoordRep > Get_vnl_vector(void)  const)
inherited

Get a vnl_vector with a copy of the internal memory block.

Deprecated:
Use GetVnlVector() instead.
bool itk::Point< TCoordRep, NPointDimension >::operator!= ( const Self pt) const
inlineinherited

Compare two points for inequality.

Definition at line 111 of file itkPoint.h.

bool itk::FixedArray< TCoordRep , VLength >::operator!= ( const FixedArray< TCoordRep, NPointDimension > &  r) const
inlineinherited

Definition at line 191 of file itkFixedArray.h.

Self itk::Point< TCoordRep, NPointDimension >::operator+ ( const VectorType vec) const
inherited

Add a vector to a point. Return a new point.

const Self& itk::Point< TCoordRep, NPointDimension >::operator+= ( const VectorType vec)
inherited

Point operator+=. Adds a vector to the current point.

In place increment by a vector

VectorType itk::Point< TCoordRep, NPointDimension >::operator- ( const Self pnt) const
inherited

Computes the Vector difference between two points

Self itk::Point< TCoordRep, NPointDimension >::operator- ( const VectorType vec) const
inherited

Subtract a vector from a point. Return a new point.

const Self& itk::Point< TCoordRep, NPointDimension >::operator-= ( const VectorType vec)
inherited

Point operator-=. Subtracts a vector from a current point.

In place subtract a vector

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge > & itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::operator= ( const Self r)
template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge > & itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::operator= ( const Superclass r)

Definition at line 74 of file itkQuadEdgeMeshPoint.hxx.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge > & itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::operator= ( const ValueType  r[VPointDimension])

Definition at line 85 of file itkQuadEdgeMeshPoint.hxx.

bool itk::Point< TCoordRep, NPointDimension >::operator== ( const Self pt) const
inlineinherited

Compare two points for equality.

Definition at line 100 of file itkPoint.h.

bool itk::FixedArray< TCoordRep , VLength >::operator== ( const FixedArray< TCoordRep, NPointDimension > &  r) const
inherited

Operators == and != are used to compare whether two arrays are equal. Note that arrays are equal when the number of components (size) is the same, and each component value is equal.

Operator != compares different types of arrays.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( short  index)
inlineinherited

Allow the FixedArray to be indexed normally. No bounds checking is done. The separate versions are a work-around for an integer conversion bug in Visual C++.

Definition at line 197 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( short  index) const
inlineinherited

Definition at line 198 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned short  index)
inlineinherited

Definition at line 199 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned short  index) const
inlineinherited

Definition at line 200 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( int  index)
inlineinherited

Definition at line 201 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( int  index) const
inlineinherited

Definition at line 202 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned int  index)
inlineinherited

Definition at line 203 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned int  index) const
inlineinherited

Definition at line 204 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( long  index)
inlineinherited

Definition at line 205 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( long  index) const
inlineinherited

Definition at line 206 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned long  index)
inlineinherited

Definition at line 207 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned long  index) const
inlineinherited

Definition at line 208 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( long long  index)
inlineinherited

Definition at line 209 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( long long  index) const
inlineinherited

Definition at line 210 of file itkFixedArray.h.

reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned long long  index)
inlineinherited

Definition at line 211 of file itkFixedArray.h.

const_reference itk::FixedArray< TCoordRep , VLength >::operator[] ( unsigned long long  index) const
inlineinherited

Definition at line 212 of file itkFixedArray.h.

ReverseIterator itk::FixedArray< TCoordRep , VLength >::rBegin ( )
inherited

Get a begin ReverseIterator.

ConstReverseIterator itk::FixedArray< TCoordRep , VLength >::rBegin ( ) const
inherited

Get a begin ConstReverseIterator.

ReverseIterator itk::FixedArray< TCoordRep , VLength >::rEnd ( )
inherited

Get an end ReverseIterator.

ConstReverseIterator itk::FixedArray< TCoordRep , VLength >::rEnd ( ) const
inherited

Get an end ConstReverseIterator.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
void itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::SetEdge ( TQuadEdge *  inputEdge)

Accessor on m_Edge

Set Edge

Definition at line 129 of file itkQuadEdgeMeshPoint.hxx.

void itk::FixedArray< TCoordRep , VLength >::SetElement ( unsigned short  index,
const_reference  value 
)
inlineinherited

Set/Get element methods are more convenient in wrapping languages

Definition at line 215 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge >
void itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::SetPoint ( const Superclass point)

Set the coordinates from a standard itk::Point

Set Point Coordinates

Definition at line 162 of file itkQuadEdgeMeshPoint.hxx.

void itk::Point< TCoordRep, NPointDimension >::SetToBarycentricCombination ( const Self A,
const Self B,
double  alpha 
)
inherited

Set the current point to a barycentric combination of the two points given as arguments.

Parameters
AFirst point
BSecond point
alphaWeight for the first point

The first point is multiplied by $ \alpha $, the second is multiplied by * $ (1-\alpha) $, and the sum is stored in the Point on which the method is invoked.

\[ \overrightarrow{P}=\alpha * \overrightarrow{A}+ (1-\alpha)*\overrightarrow{B} \]

If the value of $ \alpha \in [0,1] $, the resulting point will be placed in the line segment $ \overline{AB} $ joining $ \overrightarrow{A} $ and $ \overrightarrow{A} $

If the value of $ \alpha < 0 $ the resulting point will be placed outside the line segment $ \overline{AB} $ on the side of $ \overrightarrow{A} $.

If the value of $ \alpha > 1 $ the resulting point will be placed outside the line segment $ \overline{AB} $ on the side of $ \overrightarrow{B} $.

See Also
SetToMedian

Set the point to the barycentric combination of two points

void itk::Point< TCoordRep, NPointDimension >::SetToBarycentricCombination ( const Self A,
const Self B,
const Self C,
double  weightA,
double  weightB 
)
inherited

Set the current point to a barycentric combination of three points Two values are expected to weight the contribution of the first two points, the weight of for the third point is computed to ensure that the three weights sum 1.

This method computes:

\[ \overrightarrow{P}= w_1 * \overrightarrow{P}_1 + w_2 * \overrightarrow{P}_2 + (1-w_1-w_2 ) * \overrightarrow{P}_3 \]

If the two weight are $ \in [0,1] $ , The resulting point will alway be placed inside the triangle formed by the three points given as arguments.

Set the point to the barycentric combination of three points

void itk::Point< TCoordRep, NPointDimension >::SetToBarycentricCombination ( const Self P,
const double *  weights,
unsigned int  N 
)
inherited

Set the current point to a 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 \]

Set the point to the barycentric combination of N points

void itk::Point< TCoordRep, NPointDimension >::SetToMidPoint ( const Self ,
const Self  
)
inherited

Set to median point between the two points given as arguments

This method computes:

\[ \overrightarrow{P}=\frac{(\overrightarrow{A}+\overrightarrow{B})}{2} \]

using the two Points given as arguments, and store the result in the Point on which the method is invoked.

Set the point to the median point of the two arguments

SizeType itk::FixedArray< TCoordRep , VLength >::Size ( void  ) const
inherited

Get the size of the FixedArray.

RealType itk::Point< TCoordRep, NPointDimension >::SquaredEuclideanDistanceTo ( const Point< TCoordRepB, NPointDimension > &  pa) const
inlineinherited

Compute the Squared Euclidean Distance from this point to another point with a different representation type. Casting is done with C-Like rules

Definition at line 241 of file itkPoint.h.

Member Data Documentation

const unsigned int itk::FixedArray< TCoordRep , VLength >::Dimension
staticinherited

Dimension constant

Definition at line 57 of file itkFixedArray.h.

const unsigned int itk::FixedArray< TCoordRep , VLength >::Length
staticinherited

Length constant

Definition at line 54 of file itkFixedArray.h.

template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
TQuadEdge* itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::m_Edge
protected
template<typename TCoordRep , unsigned int VPointDimension, typename TQuadEdge = GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true >>
const unsigned int itk::QuadEdgeMeshPoint< TCoordRep, VPointDimension, TQuadEdge >::PointDimension = VPointDimension
static

Types & values defined in superclass.

Definition at line 45 of file itkQuadEdgeMeshPoint.h.


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

Generated at Sat Mar 8 2014 17:36:36 for Orfeo Toolbox with doxygen 1.8.3.1