#include <itkChainCodePath2D.h>
Inheritance diagram for itk::ChainCodePath2D:


This class is intended to represent sequences of connected indices in a 2D image plane. It does so by storing the offset of each index from its immediately preceeding, connected, index using a standard Freeman code (1=up, 2=up to the right, and so on proceeding clockwise to 8=up to the left). The only image index stored directly is thatof the first index. ChainCodePath2D maps a 1D integer input (step number) to a 2D interger output (either an offset or an image index, depending on whether Evaluate or EvaluateToIndex is called).
Definition at line 53 of file itkChainCodePath2D.h.
Public Types | |
| typedef std::vector< int > | ChainCode2DType |
| typedef std::vector< OffsetType > | ChainCodeType |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef Index< 2 > | IndexType |
| typedef Superclass::InputType | InputType |
| typedef OutputType | OffsetType |
| typedef Superclass::OutputType | OutputType |
| typedef SmartPointer< Self > | Pointer |
| typedef ChainCodePath2D | Self |
| typedef ChainCodePath< 2 > | Superclass |
Public Member Functions | |
| void | ChangeStep (InputType position, OffsetType step) |
| Change the direction of a step in the chaincode *void | ChangeStep (InputType position, int encodedStep) |
| Remove all steps from the chain code *virtual void | Clear () |
| virtual InputType | EndOfInput () const |
| virtual OutputType | Evaluate (const InputType &input) const |
| virtual IndexType | EvaluateToIndex (const InputType &input) const |
| std::string | GetChainCodeAsString (void) const |
| virtual const char * | GetNameOfClass () const |
| virtual const IndexType & | GetStart () |
| virtual OffsetType | IncrementInput (InputType &input) const |
| Needed for Pipelining *virtual void | Initialize (void) |
| void | InsertStep (InputType position, OffsetType step) |
| Insert a new step into the chaincode at a specified position *void | InsertStep (InputType position, int encodedStep) |
| itkStaticConstMacro (PathDimension, unsigned int, VDimension) | |
| itkStaticConstMacro (Dimension, unsigned int, VDimension) | |
| itkStaticConstMacro (Dimension, unsigned int, 2) | |
| unsigned int | NumberOfSteps () const |
| Set Get the index associated with the initial position of the path *virtual void | SetStart (IndexType _arg) |
| virtual InputType | StartOfInput () const |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| ChainCodePath () | |
| ChainCodePath2D () | |
| OffsetType | DecodeOffset (int encodedStep) const |
| Encode and Decode between an offset and a Freeman code *int | EncodeOffset (OffsetType step) const |
| virtual IndexType | GetZeroIndex () const |
| virtual OffsetType | GetZeroOffset () const |
| Path () | |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| ~ChainCodePath2D () | |
|
|
ChainCodePath2D stores its data as a Freeman-encoded chain code Definition at line 82 of file itkChainCodePath2D.h. |
|
|
ChainCodeType is a usless relic of the parent class Reimplemented from itk::ChainCodePath< 2 >. Definition at line 79 of file itkChainCodePath2D.h. |
|
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 65 of file itkChainCodePath2D.h. |
|
|
All paths must be mapable to index space Reimplemented from itk::ChainCodePath< 2 >. Definition at line 76 of file itkChainCodePath2D.h. |
|
|
Input type Reimplemented from itk::ChainCodePath< 2 >. Definition at line 72 of file itkChainCodePath2D.h. |
|
|
The output type of this function is an Index Reimplemented from itk::ChainCodePath< 2 >. Definition at line 75 of file itkChainCodePath2D.h. |
|
|
OutputType typedef support. Reimplemented from itk::ChainCodePath< 2 >. Definition at line 68 of file itkChainCodePath2D.h. |
|
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 64 of file itkChainCodePath2D.h. |
|
|
Standard class typedefs. Reimplemented from itk::ChainCodePath< 2 >. Definition at line 61 of file itkChainCodePath2D.h. |
|
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 62 of file itkChainCodePath2D.h. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 126 of file itkChainCodePath2D.h. |
|
||||||||||||
|
Definition at line 121 of file itkChainCodePath2D.h. |
|
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 134 of file itkChainCodePath2D.h. |
|
|
Definition at line 153 of file itkChainCodePath2D.h. |
|
|
Definition at line 149 of file itkChainCodePath2D.h. |
|
|
Where does the path end (what is the last valid input value)? Reimplemented from itk::Path< unsigned int, Offset< VDimension >, VDimension >. Definition at line 95 of file itkChainCodePath.h. |
|
|
Evaluate the chaincode for the offset at the specified path-position. Reimplemented from itk::ChainCodePath< 2 >. |
|
|
Like Evaluate(), but returns the index at the specified path-position. Reimplemented from itk::ChainCodePath< 2 >. |
|
|
|
|
|
Run-time type information (and related methods). Reimplemented from itk::ChainCodePath< 2 >. |
|
|
|
|
|
|
|
|
|
|
|
Increment the input variable passed by reference and return the offset stored at the previous path-position. If the chaincode is unable to be incremented, input is not changed and an offset of zero is returned, which may be used to check for the end of the chain code. Reimplemented from itk::ChainCodePath< 2 >. |
|
|
Definition at line 143 of file itkChainCodePath.h. |
|
||||||||||||
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 113 of file itkChainCodePath2D.h. |
|
||||||||||||
|
Definition at line 108 of file itkChainCodePath2D.h. |
|
||||||||||||||||
|
Path dimension. The dimension of a path is fixed at construction. |
|
||||||||||||||||
|
Dimension underlying input image. |
|
||||||||||||||||
|
Dimension underlying input image. |
|
|
New() method for dynamic construction Reimplemented from itk::ChainCodePath< 2 >. |
|
|
How many steps in the chaincode? Reimplemented from itk::ChainCodePath< 2 >. Definition at line 104 of file itkChainCodePath2D.h. |
|
|
|
|
||||||||||||
|
Reimplemented from itk::ChainCodePath< 2 >. |
|
|
|
|
|
Where does the path begin? For most types of paths, the path will begin at zero. This value can be overridden in children, and is necessary for iterators to know how to go to the beginning of a path. |
1.4.2 written by Dimitri van Heesch,
© 1997-2000