18#ifndef itkContinuousIndex_h
19#define itkContinuousIndex_h
45template <
typename TCoordRep =
double,
unsigned int VIndexDimension = 2>
48 static_assert(std::is_floating_point_v<TCoordRep>,
49 "The coordinates of a continuous index must be represented by floating point numbers.");
62 static constexpr unsigned int IndexDimension = VIndexDimension;
84 for (
unsigned int i = 0; i < VIndexDimension; ++i)
86 (*this)[i] =
static_cast<TCoordRep
>(index[i]);
A templated class holding a point in n-Dimensional image space.
ContinuousIndex(const IndexType &index)
typename BaseArray::Iterator Iterator
ContinuousIndex(const ValueType r[IndexDimension])
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.