#include <itkChainCodePath2D.h>
Inheritance diagram for itk::ChainCodePath2D:
Public Types | |
typedef ChainCodePath2D | Self |
typedef ChainCodePath< 2 > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::OutputType | OutputType |
typedef Superclass::InputType | InputType |
typedef OutputType | OffsetType |
typedef Index< 2 > | IndexType |
typedef std::vector< OffsetType > | ChainCodeType |
typedef std::vector< int > | ChainCode2DType |
Public Member Functions | |
itkStaticConstMacro (Dimension, unsigned int, 2) | |
virtual const char * | GetNameOfClass () const |
virtual OutputType | Evaluate (const InputType &input) const |
virtual IndexType | EvaluateToIndex (const InputType &input) const |
virtual OffsetType | IncrementInput (InputType &input) const |
unsigned int | NumberOfSteps () const |
std::string | GetChainCodeAsString (void) const |
void | InsertStep (InputType position, int encodedStep) |
void | InsertStep (InputType position, OffsetType step) |
void | ChangeStep (InputType position, int encodedStep) |
void | ChangeStep (InputType position, OffsetType step) |
virtual void | Clear () |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
ChainCodePath2D () | |
~ChainCodePath2D () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
int | EncodeOffset (OffsetType step) const |
OffsetType | DecodeOffset (int encodedStep) const |
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 that of 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 50 of file itkChainCodePath2D.h.
|
ChainCodePath2D stores its data as a Freeman-encoded chain code Definition at line 80 of file itkChainCodePath2D.h. Referenced by DecodeOffset(). |
|
ChainCodeType is a usless relic of the parent class Reimplemented from itk::ChainCodePath< 2 >. Definition at line 77 of file itkChainCodePath2D.h. |
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 62 of file itkChainCodePath2D.h. |
|
All paths must be mapable to index space Reimplemented from itk::ChainCodePath< 2 >. Definition at line 74 of file itkChainCodePath2D.h. |
|
Input type Reimplemented from itk::ChainCodePath< 2 >. Definition at line 70 of file itkChainCodePath2D.h. Referenced by NumberOfSteps(). |
|
The output type of this function is an Index Reimplemented from itk::ChainCodePath< 2 >. Definition at line 73 of file itkChainCodePath2D.h. Referenced by DecodeOffset(), and EncodeOffset(). |
|
OutputType typedef support. Reimplemented from itk::ChainCodePath< 2 >. Definition at line 69 of file itkChainCodePath2D.h. |
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 61 of file itkChainCodePath2D.h. |
|
Standard class typedefs. Reimplemented from itk::ChainCodePath< 2 >. Definition at line 58 of file itkChainCodePath2D.h. Referenced by DecodeOffset(). |
|
Reimplemented from itk::ChainCodePath< 2 >. Definition at line 59 of file itkChainCodePath2D.h. |
|
|
|
|
|
Change the direction of a step in the chaincode Reimplemented from itk::ChainCodePath< 2 >. Definition at line 129 of file itkChainCodePath2D.h. |
|
Change the direction of a step in the chaincode Definition at line 124 of file itkChainCodePath2D.h. |
|
Remove all steps from the chain code Reimplemented from itk::ChainCodePath< 2 >. Definition at line 137 of file itkChainCodePath2D.h. |
|
Encode and Decode between an offset and a Freeman code Definition at line 158 of file itkChainCodePath2D.h. References ChainCode2DType, OffsetType, and Self. |
|
Encode and Decode between an offset and a Freeman code Definition at line 154 of file itkChainCodePath2D.h. References OffsetType. |
|
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 >. |
|
Insert a new step into the chaincode at a specified position Reimplemented from itk::ChainCodePath< 2 >. Definition at line 115 of file itkChainCodePath2D.h. |
|
Insert a new step into the chaincode at a specified position Definition at line 110 of file itkChainCodePath2D.h. |
|
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 106 of file itkChainCodePath2D.h. References InputType. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::ChainCodePath< 2 >. |