18 #ifndef itkChainCodePath2D_h
19 #define itkChainCodePath2D_h
107 m_Chain2D.insert(m_Chain2D.begin() + position, encodedStep);
114 m_Chain2D.insert( m_Chain2D.begin() + position, EncodeOffset(step) );
121 m_Chain2D[position] = encodedStep;
128 m_Chain2D[position] = EncodeOffset(step);
140 std::string GetChainCodeAsString()
const;
145 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
150 return m_FreemanCode[step[0] + 1][step[1] + 1];
155 return m_ReverseFreemanCode[encodedStep];
170 int m_FreemanCode[3][3];
ChainCode2DType m_Chain2D
std::vector< int > ChainCode2DType
OffsetType DecodeOffset(int encodedStep) const
Superclass::ChainCodeType ChainCodeType
Represent a path as a sequence of connected image index offsets.
Superclass::InputType InputType
ChainCodePath< 2 > Superclass
Superclass::OutputType OutputType
SmartPointer< const Self > ConstPointer
void ChangeStep(InputType position, int encodedStep)
virtual void InsertStep(InputType position, OffsetType step) override
virtual void Clear() override
virtual ChainCodeSizeType NumberOfSteps() const override
const unsigned int Dimension
Superclass::ChainCodeSizeType ChainCodeSizeType
virtual void ChangeStep(InputType position, OffsetType step) override
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
Represent a n-dimensional index in a n-dimensional image.
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)