#include <itkCovariantVector.h>
Inheritance diagram for itk::CovariantVector< T, NVectorDimension >:


CovariantVector is a templated class that holds a single vector (i.e., an array of values). CovariantVector can be used as the data type held at each pixel in an Image or at each vertex of an Mesh. The template parameter T can be any data type that behaves like a primitive (or atomic) data type (int, short, float, complex). The NVectorDimension defines the number of components in the vector array.
CovariantVector is not a dynamically extendible array like std::vector. It is intended to be used like a mathematical vector.
If you wish a simpler pixel types, you can use Scalar, which represents a single data value at a pixel. There is also the more complex type ScalarCovariantVector, which supports (for a given pixel) a single scalar value plus an array of vector values. (The scalar and vectors can be of different data type.)
CovariantVector is the type that should be used for representing normals to surfaces and gradients of functions. AffineTransform transform covariant vectors different than vectors.
Definition at line 64 of file itkCovariantVector.h.
Public Types | |
| typedef FixedArray< T, NVectorDimension > | BaseArray |
| typedef Self | CovariantVectorType |
| typedef NumericTraits< ValueType >::RealType | RealValueType |
| typedef CovariantVector | Self |
| typedef FixedArray< T, NVectorDimension > | Superclass |
| typedef T | ValueType |
Public Member Functions | |
| template<typename TCoordRepB> | |
| Copy from another CovariantVector with a different representation type *Casting is done with C Like rules *void | CastFrom (const CovariantVector< TCoordRepB, NVectorDimension > &pa) |
| CovariantVector (const ValueType r[Dimension]) | |
| Pass through constructor for the Array base class * | CovariantVector (const Self &r) |
| CovariantVector (const ValueType &r) | |
| CovariantVector () | |
| vnl_vector< T > | Get_vnl_vector (void) const |
| vnl_vector_ref< T > | Get_vnl_vector (void) |
| RealValueType | GetNorm (void) const |
| RealValueType | GetSquaredNorm (void) const |
| vnl_vector< T > | GetVnlVector (void) const |
| vnl_vector_ref< T > | GetVnlVector (void) |
| itkStaticConstMacro (Dimension, unsigned int, NVectorDimension) | |
| void | Normalize (void) |
| ValueType | operator * (const Vector< T, NVectorDimension > &vec) const |
| ValueType | operator * (const Self &vec) const |
| Scalar | operator *.Scale the elements of a vector by a scalar.*Return a new vector.*/inline Self operator * (const ValueType &val) const |
| Scalar | operator *=.Scales elements by a scalar.*/template (const Tt &value) |
| Pass through assignment | operator for the Array base class.*/CovariantVector &operator= (const Self &r) |
| Assignment | operator with implicit casting from another data type */template (const Tt &v) |
| Self | operator+ (const Self &vec) const |
| Self | operator- (const Self &vec) const |
| Self | operator- () const |
| const Self & | operator-= (const Self &vec) |
| Scalar | operator/.Scale (divide) the elements of a vector by a scalar.*Return a new vector.*/template< class Tt > inline Self operator/(const Tt &val) const |
| Scalar | operator/=.Scales (divides) elements by a scalar.*/template< class Tt > const Self &operator/ |
| CovariantVector & | operator= (const ValueType r[NVectorDimension]) |
| void | Set_vnl_vector (const vnl_vector< T > &) |
| void | SetVnlVector (const vnl_vector< T > &) |
Static Public Member Functions | |
| static unsigned int | GetCovariantVectorDimension () |
| static unsigned int | GetNumberOfComponents () |
|
|||||
|
The Array type from which this CovariantVector is derived. Definition at line 83 of file itkCovariantVector.h. |
|
|||||
|
I am a covariant vector. Definition at line 80 of file itkCovariantVector.h. |
|
|||||
|
Definition at line 74 of file itkCovariantVector.h. |
|
|||||
|
Standard class typedefs. Definition at line 68 of file itkCovariantVector.h. |
|
|||||
|
Definition at line 69 of file itkCovariantVector.h. |
|
|||||
|
ValueType can be used to declare a variable that is the same type as a data element held in an CovariantVector. Definition at line 73 of file itkCovariantVector.h. |
|
|||||||||
|
Default constructor has nothing to do. Definition at line 113 of file itkCovariantVector.h. |
|
||||||||||
|
|
|
||||||||||
|
Definition at line 117 of file itkCovariantVector.h. |
|
||||||||||
|
Definition at line 118 of file itkCovariantVector.h. |
|
||||||||||||||
|
Definition at line 222 of file itkCovariantVector.h. |
|
||||||||||
|
Get a vnl_vector with a copy of the internal memory block.
|
|
||||||||||
|
Get a vnl_vector_ref referencing the same memory block.
|
|
|||||||||
|
Get the dimension (size) of the vector. Definition at line 86 of file itkCovariantVector.h. |
|
||||||||||
|
Returns the Euclidean Norm of the vector |
|
|||||||||
|
Returns the number of components in this vector type Definition at line 211 of file itkCovariantVector.h. |
|
||||||||||
|
Returns vector's Squared Euclidean Norm |
|
||||||||||
|
Get a vnl_vector with a copy of the internal memory block. |
|
||||||||||
|
Get a vnl_vector_ref referencing the same memory block. |
|
||||||||||||||||||||
|
Dimension of the Space |
|
||||||||||
|
Divides the covariant vector componets by the norm |
|
||||||||||
|
operator*. Performs the scalar product with a vector (contravariant). This scalar product is invariant under affine transformations |
|
||||||||||
|
CovariantVector operator*. Performs the inner product of two covariant vectors.
|
|
||||||||||
|
Definition at line 183 of file itkCovariantVector.h. |
|
||||||||||
|
Definition at line 136 of file itkCovariantVector.h. |
|
||||||||||
|
|
|
||||||||||
|
Definition at line 123 of file itkCovariantVector.h. |
|
||||||||||
|
CovariantVector addition. Add two vectors. Return a new vector. |
|
||||||||||
|
CovariantVector subtraction. Subtract two vectors. Return a new vector. |
|
|||||||||
|
CovariantVector negation. Negate all the elements of a vector. Return a new vector |
|
||||||||||
|
CovariantVector operator-=. Subtracts a vector from a current vector. |
|
||||||||||
|
Definition at line 194 of file itkCovariantVector.h. |
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
Set a vnl_vector_ref referencing the same memory block.
|
|
||||||||||
|
Set a vnl_vector_ref referencing the same memory block. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000