Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ContinuousIndex< TCoordRep, VIndexDimension > Class Template Reference
[Image Access ObjectsImage Representation Objects]

#include <itkContinuousIndex.h>

Inheritance diagram for itk::ContinuousIndex< TCoordRep, VIndexDimension >:

Inheritance graph
[legend]
Collaboration diagram for itk::ContinuousIndex< TCoordRep, VIndexDimension >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
class itk::ContinuousIndex< TCoordRep, VIndexDimension >

A templated class holding a point in n-Dimensional image space.

ContinuousIndex is a templated class that holds a set of coordinates (components). The template parameter TCoordRep can be any data type that behaves like a primitive (or atomic) data type (int, short, float, complex). The VIndexDimension defines the number of components in the continous index array.

See also:
Point

Index

Definition at line 44 of file itkContinuousIndex.h.

Public Types

typedef Superclass::BaseArray BaseArray
typedef BaseArray::ConstIterator ConstIterator
typedef TCoordRep CoordRepType
typedef Index< VIndexDimension > IndexType
typedef BaseArray::Iterator Iterator
typedef NumericTraits< ValueType
>::RealType 
RealType
typedef ContinuousIndex Self
typedef Point< TCoordRep,
VIndexDimension > 
Superclass
typedef TCoordRep ValueType
typedef Vector< ValueType,
NPointDimension > 
VectorType

Public Member Functions

Copy from another Point with
a different representation
type *Casting is done with
C Like rules *void 
CastFrom (const Point< TCoordRepB, NPointDimension > &pa)
Construct from discrete index
type * 
ContinuousIndex (const IndexType &index)
 ContinuousIndex (const ValueType r[IndexDimension])
Pass through constructor to
the Point base class
ContinuousIndex (const Self &r)
 ContinuousIndex ()
Compute the Euclidean Distance
from this point to another
point *with a different representation
type Casting is done with
C Like rules *RealType 
EuclideanDistanceTo (const Point< TCoordRepB, NPointDimension > &pa) const
Set the current point to a
barycentric combination of
the two points *given as arguments
**param f alpha the second
is multiplied *by * 
f (1-\alpha)\f $
vnl_vector< TCoordRep > Get_vnl_vector (void) const
vnl_vector_ref< TCoordRep > Get_vnl_vector (void)
VectorType GetVectorFromOrigin () const
vnl_vector< TCoordRep > GetVnlVector (void) const
vnl_vector_ref< TCoordRep > GetVnlVector (void)
 itkStaticConstMacro (PointDimension, unsigned int, NPointDimension)
 itkStaticConstMacro (IndexDimension, unsigned int, VIndexDimension)
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
Pass through assignment operator for the Array base class.*/Point &operator= (const Self &r)
Compare two points for inequality
*bool 
operator!= (const Self &pt) const
Self operator+ (const VectorType &vec) const
const Selfoperator+= (const VectorType &vec)
Self operator- (const VectorType &vec) const
VectorType operator- (const Self &pnt) const
const Selfoperator-= (const VectorType &vec)
Compare two points for equality
*bool 
operator== (const Self &pt) const
 Point (const ValueType r[PointDimension])
Pass through constructor for
the Array base class
Point (const Self &r)
 Point ()
Set the current point to a
barycentric combination of
three points *Two values are
expected to weight the contribution
of the first two *the weight
of for the third point is
computed to ensure that the
three weights *sum **This
method The resulting point
will alway be placed *inside
the triangle formed by the
three points given as arguments
*void 
SetToBarycentricCombination (const Self &A, const Self &B, const Self &C, double weightA, double weightB)
void SetToMidPoint (const Self &, const Self &)
RealType SquaredEuclideanDistanceTo (const Point< TCoordRepB, NPointDimension > &pa) const

Static Public Member Functions

static unsigned int GetPointDimension ()

Public Attributes

Set the current point to a
barycentric combination of
an array of N points *An array
the weight of the Nth point
is computed to ensure that
*the N weights sum **This
method 
computes
Set the current point to a
barycentric combination of
three points *Two values are
expected to weight the contribution
of the first two *the weight
of for the third point is
computed to ensure that the
three weights *sum **This
method 
computes
Set the current point to a
barycentric combination of
three points *Two values are
expected to weight the contribution
of the first two *the weight
of for the third point is
computed to ensure that the
three weights *sum **This
method 
f
Set the current point to a
barycentric combination of
the two points *given as arguments
**param f alpha the second
is multiplied *by *and the
sum is stored in the Point
on which the *method is invoked
**f *[*\overrightarrow{P}=\alpha *\overrightarrow{A}+(1-\alpha)*\overrightarrow{B}*\f]*If the value of f
alpha in 
f [0, 1]
Set the current point to a
barycentric combination of
the two points *given as arguments
**param f alpha 
f
Set the current point to a
barycentric combination of
an array of N points *An array
the weight of the Nth point
is computed to ensure that
*the N weights sum **This
method const double unsigned
int 
N
Set the current point to a
barycentric combination of
three points *Two values are
expected to weight the contribution
of the first two 
points
Set the current point to a
barycentric combination of
an array of N points *An array
the weight of the Nth point
is computed to ensure that
*the N weights sum **This
method const double * 
weights


Member Typedef Documentation

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef Superclass::BaseArray itk::ContinuousIndex< TCoordRep, VIndexDimension >::BaseArray
 

The Array type from which this Vector is derived.

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 63 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef BaseArray::ConstIterator itk::ContinuousIndex< TCoordRep, VIndexDimension >::ConstIterator
 

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 65 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef TCoordRep itk::ContinuousIndex< TCoordRep, VIndexDimension >::CoordRepType
 

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 54 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef Index<VIndexDimension> itk::ContinuousIndex< TCoordRep, VIndexDimension >::IndexType
 

Corresponding discrete index type

Definition at line 60 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef BaseArray::Iterator itk::ContinuousIndex< TCoordRep, VIndexDimension >::Iterator
 

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 64 of file itkContinuousIndex.h.

typedef NumericTraits< ValueType >::RealType itk::Point< TCoordRep , NPointDimension >::RealType [inherited]
 

Definition at line 57 of file itkPoint.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef ContinuousIndex itk::ContinuousIndex< TCoordRep, VIndexDimension >::Self
 

Standard class typedefs.

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 48 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef Point<TCoordRep,VIndexDimension> itk::ContinuousIndex< TCoordRep, VIndexDimension >::Superclass
 

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 49 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
typedef TCoordRep itk::ContinuousIndex< TCoordRep, VIndexDimension >::ValueType
 

ValueType can be used to declare a variable that is the same type as a data element held in an Point.

Reimplemented from itk::Point< TCoordRep, VIndexDimension >.

Definition at line 53 of file itkContinuousIndex.h.

typedef Vector< ValueType, NPointDimension > itk::Point< TCoordRep , NPointDimension >::VectorType [inherited]
 

VectorType define the difference between two Points

Definition at line 72 of file itkPoint.h.


Constructor & Destructor Documentation

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
itk::ContinuousIndex< TCoordRep, VIndexDimension >::ContinuousIndex  )  [inline]
 

Default constructor has nothing to do.

Definition at line 68 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
Pass through constructor to the Point base class* itk::ContinuousIndex< TCoordRep, VIndexDimension >::ContinuousIndex const Self r  )  [inline]
 

Definition at line 71 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
itk::ContinuousIndex< TCoordRep, VIndexDimension >::ContinuousIndex const ValueType  r[IndexDimension]  )  [inline]
 

Definition at line 72 of file itkContinuousIndex.h.

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
Construct from discrete index type* itk::ContinuousIndex< TCoordRep, VIndexDimension >::ContinuousIndex const IndexType index  )  [inline]
 

Definition at line 76 of file itkContinuousIndex.h.


Member Function Documentation

Copy from another Point with a different representation type* Casting is done with C Like rules* void itk::Point< TCoordRep , NPointDimension >::CastFrom const Point< TCoordRepB, NPointDimension > &  pa  )  [inline, inherited]
 

Definition at line 219 of file itkPoint.h.

Compute the Euclidean Distance from this point to another point* with a different representation type Casting is done with C Like rules* RealType itk::Point< TCoordRep , NPointDimension >::EuclideanDistanceTo const Point< TCoordRepB, NPointDimension > &  pa  )  const [inline, inherited]
 

Definition at line 250 of file itkPoint.h.

Set the current point to a barycentric combination of the two points* given as arguments* * param f alpha the second is multiplied* by* itk::Point< TCoordRep , NPointDimension >::f 1-\  alpha  )  [inherited]
 

vnl_vector<TCoordRep > itk::Point< TCoordRep , NPointDimension >::Get_vnl_vector void   )  const [inherited]
 

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

Deprecated:
Use GetVnlVector() instead.

vnl_vector_ref<TCoordRep > itk::Point< TCoordRep , NPointDimension >::Get_vnl_vector void   )  [inherited]
 

Get a vnl_vector_ref referencing the same memory block

Deprecated:
Use GetVnlVector() instead.

static unsigned int itk::Point< TCoordRep , NPointDimension >::GetPointDimension  )  [inline, static, inherited]
 

Get the dimension (size) of the point.

Definition at line 68 of file itkPoint.h.

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

Access an element of a point.

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

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

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

Get a vnl_vector_ref referencing the same memory block

itk::Point< TCoordRep , NPointDimension >::itkStaticConstMacro PointDimension  ,
unsigned  int,
NPointDimension 
[inherited]
 

Dimension of the Space

template<class TCoordRep = double, unsigned int VIndexDimension = 2>
itk::ContinuousIndex< TCoordRep, VIndexDimension >::itkStaticConstMacro IndexDimension  ,
unsigned  int,
VIndexDimension 
 

Dimension of the Space

Set the current point to a barycentric combination of an array of N points* An array itk::Point< TCoordRep , NPointDimension >::of N 1  )  [inherited]
 

Pass through assignment itk::Point< TCoordRep , NPointDimension >::operator for the Array base class.*/Point &operator= const Self r  )  [inherited]
 

Compare two points for inequality* bool itk::Point< TCoordRep , NPointDimension >::operator!= const Self pt  )  const [inline, inherited]
 

Definition at line 100 of file itkPoint.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.

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

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

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

Computes the Vector difference between two points

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

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

Compare two points for equality* bool itk::Point< TCoordRep , NPointDimension >::operator== const Self pt  )  const [inline, inherited]
 

Definition at line 89 of file itkPoint.h.

itk::Point< TCoordRep , NPointDimension >::Point const ValueType  r[PointDimension]  )  [inline, inherited]
 

Definition at line 79 of file itkPoint.h.

Pass through constructor for the Array base class* itk::Point< TCoordRep , NPointDimension >::Point const Self r  )  [inline, inherited]
 

Definition at line 78 of file itkPoint.h.

itk::Point< TCoordRep , NPointDimension >::Point  )  [inline, inherited]
 

Default constructor has nothing to do.

Definition at line 75 of file itkPoint.h.

Set the current point to a barycentric combination of three points* Two values are expected to weight the contribution of the first two * the weight of for the third point is computed to ensure that the three weights* sum* * This method The resulting point will alway be placed* inside the triangle formed by the three points given as arguments* void itk::Point< TCoordRep , NPointDimension >::SetToBarycentricCombination const Self A,
const Self B,
const Self C,
double  weightA,
double  weightB
[inherited]
 

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.

RealType itk::Point< TCoordRep , NPointDimension >::SquaredEuclideanDistanceTo const Point< TCoordRepB, NPointDimension > &  pa  )  const [inline, inherited]
 

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


Member Data Documentation

Set the current point to a barycentric combination of an array of N points* An array the weight of the Nth point is computed to ensure that* the N weights sum* * This method itk::Point< TCoordRep , NPointDimension >::computes [inherited]
 

Definition at line 212 of file itkPoint.h.

Set the current point to a barycentric combination of three points* Two values are expected to weight the contribution of the first two * the weight of for the third point is computed to ensure that the three weights* sum* * This method itk::Point< TCoordRep , NPointDimension >::computes [inherited]
 

Definition at line 167 of file itkPoint.h.

Set the current point to a barycentric combination of three points* Two values are expected to weight the contribution of the first two * the weight of for the third point is computed to ensure that the three weights* sum* * This method itk::Point< TCoordRep , NPointDimension >::f [inherited]
 

Definition at line 167 of file itkPoint.h.

Set the current point to a barycentric combination of the two points* given as arguments* * param f alpha the second is multiplied* by* and the sum is stored in the Point on which the* method is invoked* * f* [ * \overrightarrow{P}=\alpha * \overrightarrow{A}+ (1-\alpha)*\overrightarrow{B} * \f] * If the value of f alpha in itk::Point< TCoordRep , NPointDimension >::f[0,1] [inherited]
 

Definition at line 167 of file itkPoint.h.

Set the current point to a barycentric combination of the two points* given as arguments* * param f alpha itk::Point< TCoordRep , NPointDimension >::f [inherited]
 

Definition at line 157 of file itkPoint.h.

Set the current point to a barycentric combination of an array of N points* An array the weight of the Nth point is computed to ensure that* the N weights sum* * This method const double unsigned int itk::Point< TCoordRep , NPointDimension >::N [inherited]
 

Definition at line 212 of file itkPoint.h.

Set the current point to a barycentric combination of three points* Two values are expected to weight the contribution of the first two itk::Point< TCoordRep , NPointDimension >::points [inherited]
 

Definition at line 167 of file itkPoint.h.

Set the current point to a barycentric combination of an array of N points* An array the weight of the Nth point is computed to ensure that* the N weights sum* * This method const double* itk::Point< TCoordRep , NPointDimension >::weights [inherited]
 

Definition at line 212 of file itkPoint.h.


The documentation for this class was generated from the following file:
Generated at Sun Jul 9 19:22:24 2006 for ITK by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2000