18 #ifndef itkChainCodePath2D_h
19 #define itkChainCodePath2D_h
109 m_Chain2D.insert(m_Chain2D.begin() + position, encodedStep);
116 m_Chain2D.insert( m_Chain2D.begin() + position, EncodeOffset(step) );
123 m_Chain2D[position] = encodedStep;
130 m_Chain2D[position] = EncodeOffset(step);
142 std::string GetChainCodeAsString()
const;
147 void PrintSelf(std::ostream & os,
Indent indent)
const override;
152 return m_FreemanCode[step[0] + 1][step[1] + 1];
157 return m_ReverseFreemanCode[encodedStep];
170 int m_FreemanCode[3][3];
ChainCode2DType m_Chain2D
OffsetType DecodeOffset(int encodedStep) const
Represent a path as a sequence of connected image index offsets.
Represent a n-dimensional index in a n-dimensional image.
ChainCodeSizeType NumberOfSteps() const override
std::vector< int > ChainCode2DType
constexpr unsigned int Dimension
void ChangeStep(InputType position, int encodedStep)
Superclass::ChainCodeSizeType ChainCodeSizeType
void ChangeStep(InputType position, OffsetType step) override
Superclass::InputType InputType
int EncodeOffset(OffsetType step) const
Control indentation during Print() invocation.
void InsertStep(InputType position, OffsetType step) override
Superclass::OutputType OutputType
Superclass::ChainCodeType ChainCodeType
Base class for most ITK classes.
Base class for all data objects in ITK.
Represent a 2D path as a sequence of connected image index offsets.
void InsertStep(InputType position, int encodedStep)