|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkContinuousIndex_h
19 #define itkContinuousIndex_h
24 #include <type_traits>
45 template <
typename TCoordRep =
double,
unsigned int VIndexDimension = 2>
48 static_assert(std::is_floating_point<TCoordRep>::value,
49 "The coordinates of a continuous index must be represented by floating point numbers.");
91 for (
unsigned int i = 0; i < VIndexDimension; i++)
93 (*this)[i] = static_cast<TCoordRep>(index[i]);
Represent a n-dimensional index in a n-dimensional image.
ContinuousIndex()=default
typename BaseArray::ConstIterator ConstIterator
typename Superclass::BaseArray BaseArray
ContinuousIndex & operator=(const ContinuousIndex &)=default
static constexpr unsigned int IndexDimension
FixedArray< TCoordRep, NPointDimension > BaseArray
ContinuousIndex(const IndexType &index)
ContinuousIndex(const ValueType r[IndexDimension])
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
A templated class holding a point in n-Dimensional image space.
A templated class holding a geometric point in n-Dimensional space.
~ContinuousIndex()=default
typename BaseArray::Iterator Iterator