18#ifndef itkContinuousIndex_h
19#define itkContinuousIndex_h
45template <
typename TCoordinate =
double,
unsigned int VIndexDimension = 2>
48 static_assert(std::is_floating_point_v<TCoordinate>,
49 "The coordinates of a continuous index must be represented by floating point numbers.");
60#ifndef ITK_FUTURE_LEGACY_REMOVE
61 using CoordRepType ITK_FUTURE_DEPRECATED(
62 "ITK 6 discourages using `CoordRepType`. Please use `CoordinateType` instead!") =
CoordinateType;
66 static constexpr unsigned int IndexDimension = VIndexDimension;
88 for (
unsigned int i = 0; i < VIndexDimension; ++i)
90 (*this)[i] =
static_cast<TCoordinate
>(index[i]);
A templated class holding a point in n-Dimensional image space.
typename BaseArray::Iterator Iterator
ContinuousIndex(const IndexType &index)
ContinuousIndex(const ValueType r[IndexDimension])
TCoordinate CoordinateType
typename Superclass::BaseArray BaseArray
ContinuousIndex()=default
typename BaseArray::ConstIterator ConstIterator
A templated class holding a geometric point in n-Dimensional space.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional index in a n-dimensional image.