ITK
6.0.0
Insight Toolkit
|
#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 |
Public Types inherited from itk::Point< TCoordinate, VIndexDimension > | |
using | BaseArray = FixedArray< TCoordinate, VPointDimension > |
using | ConstIterator = typename BaseArray::ConstIterator |
using | CoordinateType = TCoordinate |
using | Iterator = typename BaseArray::Iterator |
using | RealType = typename NumericTraits< ValueType >::RealType |
using | Self = Point |
using | Superclass = FixedArray< TCoordinate, VPointDimension > |
using | ValueType = TCoordinate |
using | VectorType = Vector< ValueType, VPointDimension > |
Public Types inherited from itk::FixedArray< TCoordinate, VPointDimension > | |
using | CArray = ValueType[VLength] |
using | const_iterator = const ValueType * |
using | const_pointer = const ValueType * |
using | const_reference = const ValueType & |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | ConstIterator = const ValueType * |
using | Iterator = ValueType * |
using | iterator = ValueType * |
using | pointer = ValueType * |
using | reference = ValueType & |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | SizeType = unsigned int |
using | ValueType = TCoordinate |
Public Member Functions | |
ContinuousIndex ()=default | |
ContinuousIndex (const ValueType r[IndexDimension]) | |
ContinuousIndex (const IndexType &index) | |
Public Member Functions inherited from itk::Point< TCoordinate, VIndexDimension > | |
RealType | EuclideanDistanceTo (const Point< TCoordinateB, VPointDimension > &pa) const |
VectorType | GetVectorFromOrigin () const |
vnl_vector_ref< TCoordinate > | GetVnlVector () |
vnl_vector< TCoordinate > | GetVnlVector () const |
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Self) | |
Self | operator+ (const VectorType &vec) const |
const Self & | operator+= (const VectorType &vec) |
VectorType | operator- (const Self &pnt) const |
Self | operator- (const VectorType &vec) const |
const Self & | operator-= (const VectorType &vec) |
Point & | operator= (const ValueType r[VPointDimension]) |
bool | operator== (const Self &pt) const |
Point ()=default | |
Point (const Point< TPointValueType, VPointDimension > &r) | |
Point (const std::array< ValueType, VPointDimension > &stdArray) | |
Point (const TPointValueType &v) | |
Point (const ValueType &v) | |
Point (std::nullptr_t)=delete | |
void | SetToMidPoint (const Self &, const Self &) |
RealType | SquaredEuclideanDistanceTo (const Point< TCoordinateB, VPointDimension > &pa) const |
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, const Self &C, double weightForA, double weightForB) |
void | SetToBarycentricCombination (const Self *P, const double *weights, unsigned int N) |
void | CastFrom (const Point< TCoordinateB, VPointDimension > &pa) |
Public Member Functions inherited from itk::FixedArray< TCoordinate, VPointDimension > | |
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) | |
itkLegacyMacro (ReverseIterator rBegin();) itkLegacyMacro(ConstReverseIterator rBegin() const | |
itkLegacyMacro (ReverseIterator rEnd();) itkLegacyMacro(ConstReverseIterator rEnd() const | |
FixedArray & | operator= (const FixedArray< TFixedArrayValueType, VLength > &r) |
FixedArray & | operator= (const ValueType r[VLength]) |
bool | operator== (const FixedArray &r) const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () 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 constexpr ITK_GCC_SUPPRESS_Warray_bounds 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 Public Attributes inherited from itk::Point< TCoordinate, VIndexDimension > | |
static constexpr unsigned int | PointDimension |
Static Public Attributes inherited from itk::FixedArray< TCoordinate, VPointDimension > | |
static constexpr unsigned int | Dimension |
static constexpr unsigned int | Length |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Point< TCoordinate, VIndexDimension > | |
static unsigned int | GetPointDimension () |
Static Public Member Functions inherited from itk::FixedArray< TCoordinate, VPointDimension > | |
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.