ITK
4.3.0
Insight Segmentation and Registration Toolkit
|
#include <itkChainCodePath.h>
Represent a path as a sequence of connected image index offsets.
This class is intended to represent sequences of connected indices in an image. It does so by storing the offset of each index from its immediately preceding, connected, index. The only image index stored directly is that of the first index. ChainCodePath maps a 1D integer input (step number) to an ND integer output (either an offset or an image index, depending on whether Evaluate or EvaluateToIndex is called).
Definition at line 49 of file itkChainCodePath.h.
Public Types | |
typedef ChainCodeType::size_type | ChainCodeSizeType |
typedef std::vector< OffsetType > | ChainCodeType |
typedef SmartPointer< const Self > | ConstPointer |
typedef Index< VDimension > | IndexType |
typedef Superclass::InputType | InputType |
typedef OutputType | OffsetType |
typedef Superclass::OutputType | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef ChainCodePath< VDimension > | Self |
typedef Path< unsigned int, Offset< VDimension > , VDimension > | Superclass |
Public Types inherited from itk::Path< unsigned int, Offset< VDimension >, VDimension > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Index< VDimension > | IndexType |
typedef unsigned int | InputType |
typedef Offset< VDimension > | OffsetType |
typedef Offset< VDimension > | OutputType |
typedef SmartPointer< Self > | Pointer |
typedef Path | Self |
typedef DataObject | Superclass |
Public Types inherited from itk::DataObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef std::string | DataObjectIdentifierType |
typedef std::vector< Pointer > ::size_type | DataObjectPointerArraySizeType |
typedef SmartPointer< Self > | Pointer |
typedef DataObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual InputType | EndOfInput () const |
virtual OutputType | Evaluate (const InputType &input) const |
virtual IndexType | EvaluateToIndex (const InputType &input) const |
virtual const char * | GetNameOfClass () const |
virtual OffsetType | IncrementInput (InputType &input) const |
virtual ChainCodeSizeType | NumberOfSteps () const |
virtual void | SetStart (IndexType _arg) |
virtual const IndexType & | GetStart () |
virtual void | InsertStep (InputType position, OffsetType step) |
virtual void | ChangeStep (InputType position, OffsetType step) |
virtual void | Clear () |
virtual void | Initialize (void) |
Public Member Functions inherited from itk::Path< unsigned int, Offset< VDimension >, VDimension > | |
virtual OutputType | Evaluate (const InputType &input) const =0 |
virtual IndexType | EvaluateToIndex (const InputType &input) const =0 |
virtual OffsetType | IncrementInput (InputType &input) const =0 |
virtual InputType | StartOfInput () const |
Public Member Functions inherited from itk::DataObject | |
virtual void | CopyInformation (const DataObject *) |
virtual void | DataHasBeenGenerated () |
void | DisconnectPipeline () |
bool | GetDataReleased () const |
virtual const bool & | GetReleaseDataFlag () |
SmartPointerForwardReference < ProcessObject > | GetSource () const |
DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
const DataObjectIdentifierType & | GetSourceOutputName () const |
virtual ModifiedTimeType | GetUpdateMTime () const |
virtual void | Graft (const DataObject *) |
virtual void | PrepareForNewData () |
virtual void | PropagateRequestedRegion () |
void | ReleaseData () |
virtual void | ReleaseDataFlagOff () |
virtual void | ReleaseDataFlagOn () |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
virtual void | ResetPipeline () |
void | SetReleaseDataFlag (bool flag) |
virtual void | SetRequestedRegion (const DataObject *) |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
bool | ShouldIReleaseData () const |
virtual void | Update () |
virtual void | UpdateOutputData () |
virtual void | UpdateOutputInformation () |
virtual bool | VerifyRequestedRegion () |
void | SetPipelineMTime (ModifiedTimeType time) |
virtual const ModifiedTimeType & | GetPipelineMTime () |
virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
virtual const RealTimeStamp & | GetRealTimeStamp () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | Dimension = VDimension |
Static Public Attributes inherited from itk::Path< unsigned int, Offset< VDimension >, VDimension > | |
static const unsigned int | PathDimension |
Protected Member Functions | |
ChainCodePath () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
~ChainCodePath () | |
Protected Member Functions inherited from itk::Path< unsigned int, Offset< VDimension >, VDimension > | |
virtual IndexType | GetZeroIndex () const |
virtual OffsetType | GetZeroOffset () const |
Path () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
~Path () | |
Protected Member Functions inherited from itk::DataObject | |
DataObject () | |
virtual void | PropagateResetPipeline () |
~DataObject () | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
ChainCodePath (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ChainCodeType | m_Chain |
IndexType | m_Start |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
typedef ChainCodeType::size_type itk::ChainCodePath< VDimension >::ChainCodeSizeType |
Definition at line 76 of file itkChainCodePath.h.
typedef std::vector< OffsetType > itk::ChainCodePath< VDimension >::ChainCodeType |
Definition at line 74 of file itkChainCodePath.h.
typedef SmartPointer< const Self > itk::ChainCodePath< VDimension >::ConstPointer |
Definition at line 61 of file itkChainCodePath.h.
typedef Index< VDimension > itk::ChainCodePath< VDimension >::IndexType |
Definition at line 72 of file itkChainCodePath.h.
typedef Superclass::InputType itk::ChainCodePath< VDimension >::InputType |
Definition at line 68 of file itkChainCodePath.h.
typedef OutputType itk::ChainCodePath< VDimension >::OffsetType |
The output type of this function is an Index
Definition at line 71 of file itkChainCodePath.h.
typedef Superclass::OutputType itk::ChainCodePath< VDimension >::OutputType |
OutputType typedef support.
Definition at line 64 of file itkChainCodePath.h.
typedef SmartPointer< Self > itk::ChainCodePath< VDimension >::Pointer |
Definition at line 60 of file itkChainCodePath.h.
typedef ChainCodePath< VDimension > itk::ChainCodePath< VDimension >::Self |
Standard class typedefs.
Definition at line 57 of file itkChainCodePath.h.
typedef Path< unsigned int, Offset< VDimension >, VDimension > itk::ChainCodePath< VDimension >::Superclass |
Definition at line 58 of file itkChainCodePath.h.
|
protected |
|
inlineprotected |
Definition at line 149 of file itkChainCodePath.h.
|
private |
|
inlinevirtual |
Change the direction of a step in the chaincode
Reimplemented in itk::ChainCodePath2D.
Definition at line 118 of file itkChainCodePath.h.
|
inlinevirtual |
Remove all steps from the chain code
Reimplemented in itk::ChainCodePath2D.
Definition at line 126 of file itkChainCodePath.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
inlinevirtual |
Where does the path end (what is the last valid input value)?
Reimplemented from itk::Path< unsigned int, Offset< VDimension >, VDimension >.
Definition at line 96 of file itkChainCodePath.h.
|
inlinevirtual |
Evaluate the chaincode for the offset at the specified path-position.
Reimplemented in itk::ChainCodePath2D.
Definition at line 81 of file itkChainCodePath.h.
|
virtual |
Like Evaluate(), but returns the index at the specified path-position.
Reimplemented in itk::ChainCodePath2D.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Path< unsigned int, Offset< VDimension >, VDimension >.
Reimplemented in itk::ChainCodePath2D.
|
virtual |
Set/Get the index associated with the initial position of the path
|
virtual |
Increment the input variable passed by reference and then return the offset stored at the new 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 in itk::ChainCodePath2D.
|
inlinevirtual |
Needed for Pipelining
Reimplemented from itk::DataObject.
Definition at line 140 of file itkChainCodePath.h.
|
inlinevirtual |
Insert a new step into the chaincode at a specified position
Reimplemented in itk::ChainCodePath2D.
Definition at line 110 of file itkChainCodePath.h.
|
static |
New() method for dynamic construction
|
inlinevirtual |
How many steps in the chaincode?
Reimplemented in itk::ChainCodePath2D.
Definition at line 134 of file itkChainCodePath.h.
|
private |
|
protectedvirtual |
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::DataObject.
|
virtual |
Set/Get the index associated with the initial position of the path
|
static |
Dimension underlying input image.
Definition at line 54 of file itkChainCodePath.h.
|
private |
Definition at line 157 of file itkChainCodePath.h.
|
private |
Definition at line 156 of file itkChainCodePath.h.