|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkChainCodePath_h
19 #define itkChainCodePath_h
49 template <
unsigned int VDimension>
50 class ITK_TEMPLATE_EXPORT
ChainCodePath :
public Path<unsigned int, Offset<VDimension>, VDimension>
56 static constexpr
unsigned int Dimension = VDimension;
86 return m_Chain[input];
91 EvaluateToIndex(
const InputType & input)
const override;
98 IncrementInput(InputType & input)
const override;
104 return static_cast<InputType>(NumberOfSteps());
112 itkGetConstReferenceMacro(Start,
IndexType);
119 m_Chain.insert(m_Chain.begin() + position, step);
128 m_Chain[position] = step;
143 virtual inline ChainCodeSizeType
146 return m_Chain.size();
153 m_Start = this->GetZeroIndex();
162 PrintSelf(std::ostream & os,
Indent indent)
const override;
170 #ifndef ITK_MANUAL_INSTANTIATION
171 # include "itkChainCodePath.hxx"
Represent a n-dimensional index in a n-dimensional image.
Represent a path through ND Space.
typename Superclass::InputType InputType
Control indentation during Print() invocation.
InputType EndOfInput() const override
ImageBaseType::IndexType IndexType
virtual void InsertStep(InputType position, OffsetType step)
std::vector< OffsetType > ChainCodeType
virtual void ChangeStep(InputType position, OffsetType step)
typename Superclass::OutputType OutputType
typename ChainCodeType::size_type ChainCodeSizeType
virtual ChainCodeSizeType NumberOfSteps() const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
OutputType Evaluate(const InputType &input) const override
Base class for most ITK classes.
void Initialize() override
Represent a path as a sequence of connected image index offsets.
constexpr unsigned int Dimension
Base class for all data objects in ITK.