|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkChainCodePath2D_h
19 #define itkChainCodePath2D_h
88 Evaluate(
const InputType & input)
const override;
92 EvaluateToIndex(
const InputType & input)
const override;
99 IncrementInput(
InputType & input)
const override;
110 return m_Chain2D.size();
117 m_Chain2D.insert(m_Chain2D.begin() + position, encodedStep);
125 m_Chain2D.insert(m_Chain2D.begin() + position, EncodeOffset(step));
133 m_Chain2D[position] = encodedStep;
141 m_Chain2D[position] = EncodeOffset(step);
155 GetChainCodeAsString()
const;
161 PrintSelf(std::ostream & os,
Indent indent)
const override;
167 return m_FreemanCode[step[0] + 1][step[1] + 1];
173 return m_ReverseFreemanCode[encodedStep];
186 int m_FreemanCode[3][3]{};
Represent a n-dimensional index in a n-dimensional image.
Represent a 2D path as a sequence of connected image index offsets.
void ChangeStep(InputType position, OffsetType step) override
Superclass::InputType InputType
std::vector< int > ChainCode2DType
void InsertStep(InputType position, OffsetType step) override
Superclass::OutputType OutputType
Control indentation during Print() invocation.
Superclass::ChainCodeType ChainCodeType
void InsertStep(InputType position, int encodedStep)
OffsetType DecodeOffset(int encodedStep) const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Base class for most ITK classes.
int EncodeOffset(OffsetType step) const
Represent a path as a sequence of connected image index offsets.
ChainCodeSizeType NumberOfSteps() const override
void ChangeStep(InputType position, int encodedStep)
Superclass::ChainCodeSizeType ChainCodeSizeType
constexpr unsigned int Dimension
Base class for all data objects in ITK.