18 #ifndef __itkChainCodePath2D_h
19 #define __itkChainCodePath2D_h
55 itkStaticConstMacro(Dimension,
unsigned int, 2);
105 inline void InsertStep(
InputType position,
int encodedStep)
107 m_Chain2D.insert(m_Chain2D.begin() + position, encodedStep);
114 m_Chain2D.insert( m_Chain2D.begin() + position, EncodeOffset(step) );
119 inline void ChangeStep(
InputType position,
int encodedStep)
121 m_Chain2D[position] = encodedStep;
128 m_Chain2D[position] = EncodeOffset(step);
133 virtual inline void Clear()
140 std::string GetChainCodeAsString(
void)
const;
145 void PrintSelf(std::ostream & os,
Indent indent)
const;
150 return m_FreemanCode[step[0] + 1][step[1] + 1];
155 return m_ReverseFreemanCode[encodedStep];
160 void operator=(
const Self &);
171 int m_FreemanCode[3][3];