18 #ifndef itkChainCodePath2D_h
19 #define itkChainCodePath2D_h
23 #include "ITKPathExport.h"
56 itkStaticConstMacro(Dimension,
unsigned int, 2);
108 m_Chain2D.insert(m_Chain2D.begin() + position, encodedStep);
115 m_Chain2D.insert( m_Chain2D.begin() + position, EncodeOffset(step) );
122 m_Chain2D[position] = encodedStep;
129 m_Chain2D[position] = EncodeOffset(step);
134 virtual inline void Clear() ITK_OVERRIDE
141 std::string GetChainCodeAsString()
const;
146 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
151 return m_FreemanCode[step[0] + 1][step[1] + 1];
156 return m_ReverseFreemanCode[encodedStep];
161 void operator=(const Self &) ITK_DELETE_FUNCTION;
172 int m_FreemanCode[3][3];
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
Superclass::ChainCodeSizeType ChainCodeSizeType
virtual void ChangeStep(InputType position, OffsetType step) override
int EncodeOffset(OffsetType step) const
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)