#include <itkContinuousIndex.h>
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 TCoordinate can be any floating point type (float, double). The VIndexDimension defines the number of components in the continuous index array.
Definition at line 46 of file itkContinuousIndex.h.
Public Types | |
using | BaseArray = typename Superclass::BaseArray |
using | ConstIterator = typename BaseArray::ConstIterator |
using | CoordinateType = TCoordinate |
using | IndexType = Index<VIndexDimension> |
using | Iterator = typename BaseArray::Iterator |
using | Self = ContinuousIndex |
using | Superclass = Point<TCoordinate, VIndexDimension> |
using | ValueType = TCoordinate |
![]() | |
using | BaseArray |
using | ConstIterator |
using | CoordinateType |
using | Iterator |
using | RealType |
using | Self |
using | Superclass |
using | ValueType |
using | VectorType |
![]() | |
using | CArray |
using | const_iterator |
using | const_pointer |
using | const_reference |
using | const_reverse_iterator |
using | ConstIterator |
using | Iterator |
using | iterator |
using | pointer |
using | reference |
using | reverse_iterator |
using | SizeType |
using | value_type |
using | ValueType |
Public Member Functions | |
ContinuousIndex ()=default | |
ContinuousIndex (const ValueType r[IndexDimension]) | |
ContinuousIndex (const IndexType &index) | |
![]() | |
RealType | EuclideanDistanceTo (const Point< TCoordinateB, VPointDimension > &pa) const |
RealType | EuclideanDistanceTo (const Point< TCoordinateB, VPointDimension > &pa) const |
VectorType | GetVectorFromOrigin () const |
VectorType | GetVectorFromOrigin () const |
vnl_vector_ref< double > | GetVnlVector () |
vnl_vector_ref< double > | GetVnlVector () |
vnl_vector< double > | GetVnlVector () const |
vnl_vector< double > | GetVnlVector () const |
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self) | |
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self) | |
Self | operator+ (const VectorType &vec) const |
Self | operator+ (const VectorType &vec) const |
const Self & | operator+= (const VectorType &vec) |
const Self & | operator+= (const VectorType &vec) |
VectorType | operator- (const Self &pnt) const |
VectorType | operator- (const Self &pnt) const |
Self | operator- (const VectorType &vec) const |
Self | operator- (const VectorType &vec) const |
const Self & | operator-= (const VectorType &vec) |
const Self & | operator-= (const VectorType &vec) |
Point & | operator= (const ValueType r[VPointDimension]) |
Point & | operator= (const ValueType r[VPointDimension]) |
bool | operator== (const Self &pt) const |
bool | operator== (const Self &pt) const |
Point ()=default | |
Point ()=default | |
Point (const Point< TPointValueType, VPointDimension > &r) | |
Point (const Point< TPointValueType, VPointDimension > &r) | |
Point (const std::array< ValueType, VPointDimension > &stdArray) | |
Point (const std::array< ValueType, VPointDimension > &stdArray) | |
Point (const TPointValueType &v) | |
Point (const TPointValueType &v) | |
Point (const ValueType &v) | |
Point (const ValueType &v) | |
Point (std::nullptr_t)=delete | |
Point (std::nullptr_t)=delete | |
void | SetToMidPoint (const Self &, const Self &) |
void | SetToMidPoint (const Self &, const Self &) |
RealType | SquaredEuclideanDistanceTo (const Point< TCoordinateB, VPointDimension > &pa) const |
RealType | SquaredEuclideanDistanceTo (const Point< TCoordinateB, VPointDimension > &pa) const |
Point (const TPointValueType r[VPointDimension]) | |
Point (const ValueType r[VPointDimension]) | |
Point (const TPointValueType r[VPointDimension]) | |
Point (const ValueType r[VPointDimension]) | |
void | SetToBarycentricCombination (const Self &A, const Self &B, double alpha) |
void | SetToBarycentricCombination (const Self &A, const Self &B, double alpha) |
void | SetToBarycentricCombination (const Self &A, const Self &B, const Self &C, double weightForA, double weightForB) |
void | SetToBarycentricCombination (const Self &A, const Self &B, const Self &C, double weightForA, double weightForB) |
void | SetToBarycentricCombination (const Self *P, const double *weights, unsigned int N) |
void | SetToBarycentricCombination (const Self *P, const double *weights, unsigned int N) |
void | CastFrom (const Point< TCoordinateB, VPointDimension > &pa) |
void | CastFrom (const Point< TCoordinateB, VPointDimension > &pa) |
![]() | |
Iterator | Begin () |
ConstIterator | Begin () const |
constexpr const_iterator | begin () const noexcept |
constexpr iterator | begin () noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
ValueType * | data () |
const ValueType * | data () const |
Iterator | End () |
ConstIterator | End () const |
constexpr const_iterator | end () const noexcept |
constexpr iterator | end () noexcept |
void | Fill (const ValueType &) |
FixedArray ()=default | |
FixedArray (const FixedArray< TFixedArrayValueType, VLength > &r) | |
FixedArray (const std::array< ValueType, VLength > &stdArray) | |
FixedArray (const TScalarValue *r) | |
ValueType * | GetDataPointer () |
const ValueType * | GetDataPointer () const |
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (FixedArray) | |
FixedArray & | operator= (const FixedArray< TFixedArrayValueType, VLength > &r) |
FixedArray & | operator= (const ValueType r[VLength]) |
bool | operator== (const FixedArray &r) const |
ReverseIterator | rBegin () |
ConstReverseIterator | rBegin () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
ReverseIterator | rEnd () |
ConstReverseIterator | rEnd () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
SizeType | Size () const |
constexpr SizeType | size () const |
void | swap (FixedArray &other) noexcept |
FixedArray (const ValueType r[VLength]) | |
FixedArray (const ValueType &) | |
ITK_GCC_PRAGMA_PUSH ITK_GCC_SUPPRESS_Warray_bounds constexpr reference | operator[] (unsigned int index) |
constexpr const_reference | operator[] (unsigned int index) const |
ITK_GCC_PRAGMA_POP void | SetElement (unsigned int index, const_reference value) |
const_reference | GetElement (unsigned int index) const |
Static Public Attributes | |
static constexpr unsigned int | IndexDimension = VIndexDimension |
![]() | |
static constexpr unsigned int | PointDimension |
static constexpr unsigned int | PointDimension |
![]() | |
static constexpr unsigned int | Dimension |
static constexpr unsigned int | Length |
Additional Inherited Members | |
![]() | |
static unsigned int | GetPointDimension () |
static unsigned int | GetPointDimension () |
![]() | |
static constexpr FixedArray | Filled (const ValueType &value) |
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::BaseArray = typename Superclass::BaseArray |
The Array type from which this Vector is derived.
Definition at line 72 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::ConstIterator = typename BaseArray::ConstIterator |
Definition at line 74 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::CoordinateType = TCoordinate |
Definition at line 59 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::IndexType = Index<VIndexDimension> |
Corresponding discrete index type
Definition at line 69 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::Iterator = typename BaseArray::Iterator |
Definition at line 73 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::Self = ContinuousIndex |
Standard class type aliases.
Definition at line 53 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::Superclass = Point<TCoordinate, VIndexDimension> |
Definition at line 54 of file itkContinuousIndex.h.
using itk::ContinuousIndex< TCoordinate, VIndexDimension >::ValueType = TCoordinate |
ValueType can be used to declare a variable that is the same type as a data element held in an Point.
Definition at line 58 of file itkContinuousIndex.h.
|
default |
Default-constructor.
|
inline |
Pass-through constructor to the Point base class.
Definition at line 81 of file itkContinuousIndex.h.
|
inline |
Construct from discrete index type
Definition at line 86 of file itkContinuousIndex.h.
|
staticconstexpr |
Dimension of the Space
Definition at line 66 of file itkContinuousIndex.h.