ITK  4.3.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
itk::ContourExtractor2DImageFilter< TInputImage > Class Template Reference

#include <itkContourExtractor2DImageFilter.h>

+ Inheritance diagram for itk::ContourExtractor2DImageFilter< TInputImage >:
+ Collaboration diagram for itk::ContourExtractor2DImageFilter< TInputImage >:

Detailed Description

template<class TInputImage>
class itk::ContourExtractor2DImageFilter< TInputImage >

Computes a list of PolyLineParametricPath objects from the contours in a 2D image.

Uses the "marching squares" method to compute a the iso-valued contours of the input 2D image for a given intensity value. Multiple outputs may be produced because an image can have multiple contours at a given level, so it is advised to call GetNumberOfIndexedOutputs() and GetOutput(n) to retrieve all of the contours. The contour value to be extracted can be set with SetContourValue(). Image intensities will be linearly interpolated to provide sub-pixel resolution for the output contours.

The marching squares algorithm is a special case of the marching cubes algorithm (Lorensen, William and Harvey E. Cline. Marching Cubes: A High Resolution 3D Surface Construction Algorithm. Computer Graphics (SIGGRAPH 87 Proceedings) 21(4) July 1987, p. 163-170). A simple explanation is available here: http://users.polytech.unice.fr/~lingrand/MarchingCubes/algo.html

There is a single ambiguous case in the marching squares algorithm: if a given 2x2-pixel square has two high-valued and two low-valued pixels, each pair diagonally adjacent. (Where high- and low-valued is with respect to the contour value sought.) In this case, either the high-valued pixels can be connected into the same "object" (where groups of pixels encircled by a given contour are considered an object), or the low-valued pixels can be connected. This is the "face connected" versus "face + vertex connected" (or 4- versus 4-connected) distinction: high-valued pixels most be treated as one, and low-valued as the other. By default, high-valued pixels are treated as "face-connected" and low-valued pixels are treated as "face + vertex" connected. To reverse this, call VertexConnectHighPixelsOn();

Outputs are not guaranteed to be closed paths: contours which intersect the image edge will be left open. All other paths will be closed. (The closed-ness of a path can be tested by checking whether the beginning point is the same as the end point.)

Produced paths are oriented. Following the path from beginning to end, image intensity values lower than the contour value are to the left of the path and intensity values grater than the contour value are to the right. In other words, the image gradient at a path segment is (approximately) in the direct of that segment rotated right by 90 degrees, because the image intensity values increase from left-to-right across the segment. This means that the generated contours will circle clockwise around "hills" of above-contour-value intensity, and counter-clockwise around "depressions" of below-contour-value intensity. This convention can be reversed by calling ReverseContourOrientationOn().

By default the input image's largest possible region will be processed; call SetRequestedRegion() to process a different region, or ClearRequestedRegion() to revert to the default value. Note that the requested regions are usually set on the output; however since paths have no notion of a "region", this must be set at the filter level.

This class was contributed to the Insight Journal by Zachary Pincus. http://hdl.handle.net/1926/165

See Also
Image
Path
PolyLineParametricPath
Wiki Examples:

Definition at line 96 of file itkContourExtractor2DImageFilter.h.

Classes

class  ContourType
 
struct  VertexHash
 

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef InputImageType::Pointer InputImagePointer
 
typedef TInputImage InputImageType
 
typedef InputImageType::IndexType InputIndexType
 
typedef InputImageType::OffsetType InputOffsetType
 
typedef InputImageType::PixelType InputPixelType
 
typedef NumericTraits
< InputPixelType >::RealType 
InputRealType
 
typedef InputImageType::RegionType InputRegionType
 
typedef OutputPathType::Pointer OutputPathPointer
 
typedef PolyLineParametricPath< 2 > OutputPathType
 
typedef SmartPointer< SelfPointer
 
typedef
ContourExtractor2DImageFilter 
Self
 
typedef ImageToPathFilter
< InputImageType,
OutputPathType
Superclass
 
typedef
VertexListType::ConstPointer 
VertexListConstPointer
 
typedef
OutputPathType::VertexListType 
VertexListType
 
typedef OutputPathType::VertexType VertexType
 
- Public Types inherited from itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >
typedef SmartPointer< const SelfConstPointer
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef SmartPointer< SelfPointer
 
typedef ImageToPathFilter Self
 
typedef PathSource
< PolyLineParametricPath< 2 > > 
Superclass
 
- Public Types inherited from itk::PathSource< PolyLineParametricPath< 2 > >
typedef SmartPointer< const SelfConstPointer
 
typedef DataObject::Pointer DataObjectPointer
 
typedef OutputPathType::IndexType OutputPathIndexType
 
typedef OutputPathType::InputType OutputPathInputType
 
typedef OutputPathType::OffsetType OutputPathOffsetType
 
typedef OutputPathType::OutputType OutputPathOutputType
 
typedef OutputPathType::Pointer OutputPathPointer
 
typedef PolyLineParametricPath< 2 > OutputPathType
 
typedef SmartPointer< SelfPointer
 
typedef PathSource Self
 
typedef ProcessObject Superclass
 
typedef
ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

void ClearRequestedRegion ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual const InputRegionTypeGetRequestedRegion ()
 
void SetRequestedRegion (const InputRegionType region)
 
 typedef (Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), 2 >) DimensionShouldBe2
 
 typedef (Concept::Comparable< InputPixelType >) InputPixelTypeComparable
 
 typedef (Concept::HasPixelTraits< InputPixelType >) InputHasPixelTraitsCheck
 
 typedef (Concept::HasNumericTraits< InputPixelType >) InputHasNumericTraitsCheck
 
virtual void SetReverseContourOrientation (bool _arg)
 
virtual const bool & GetReverseContourOrientation ()
 
virtual void ReverseContourOrientationOn ()
 
virtual void ReverseContourOrientationOff ()
 
virtual void SetVertexConnectHighPixels (bool _arg)
 
virtual const bool & GetVertexConnectHighPixels ()
 
virtual void VertexConnectHighPixelsOn ()
 
virtual void VertexConnectHighPixelsOff ()
 
virtual void SetContourValue (InputRealType _arg)
 
virtual const InputRealTypeGetContourValue ()
 
- Public Member Functions inherited from itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >
const InputImageTypeGetInput (void)
 
const InputImageTypeGetInput (unsigned int idx)
 
virtual void SetInput (const InputImageType *image)
 
virtual void SetInput (unsigned int, const TInputImage *image)
 
- Public Member Functions inherited from itk::PathSource< PolyLineParametricPath< 2 > >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
OutputPathTypeGetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, OutputPathType *output)
 
OutputPathTypeGetOutput (void)
 
virtual void GraftOutput (OutputPathType *output)
 
virtual DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx)
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData ()
 
NameArray GetInputNames () const
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
virtual const float & GetProgress ()
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetProgress (float _arg)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float amount)
 
DataObjectPointerArray GetInputs ()
 
DataObjectPointerArray GetOutputs ()
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual bool GetReleaseDataFlag () const
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual const bool & GetReleaseDataBeforeUpdateFlag ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
virtual const ThreadIdTypeGetNumberOfThreads ()
 
- 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
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () 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 InputImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >
static const unsigned int InputImageDimension
 

Protected Member Functions

 ContourExtractor2DImageFilter ()
 
void GenerateData ()
 
virtual void GenerateInputRequestedRegion () throw ( InvalidRequestedRegionError )
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~ContourExtractor2DImageFilter ()
 
- Protected Member Functions inherited from itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >
 ImageToPathFilter ()
 
 ~ImageToPathFilter ()
 
- Protected Member Functions inherited from itk::PathSource< PolyLineParametricPath< 2 > >
 PathSource ()
 
virtual ~PathSource ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs ()
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryOutput (DataObject *output)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation ()
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PopBackInput ()
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void PopFrontInput ()
 
- 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 Types

typedef vcl_list< ContourTypeContourContainer
 
typedef ContourContainer::iterator ContourRef
 
typedef
VertexToContourMap::value_type 
VertexContourRefPair
 
typedef
VertexToContourMap::iterator 
VertexMapIterator
 
typedef itksys::hash_map
< VertexType, ContourRef,
VertexHash
VertexToContourMap
 

Private Member Functions

void AddSegment (const VertexType from, const VertexType to)
 
 ContourExtractor2DImageFilter (const Self &)
 
void FillOutputs ()
 
VertexType InterpolateContourPosition (InputPixelType fromValue, InputPixelType toValue, InputIndexType fromIndex, InputOffsetType toOffset)
 
void operator= (const Self &)
 

Private Attributes

VertexToContourMap m_ContourEnds
 
ContourContainer m_Contours
 
VertexToContourMap m_ContourStarts
 
InputRealType m_ContourValue
 
unsigned int m_NumberOfContoursCreated
 
InputRegionType m_RequestedRegion
 
bool m_ReverseContourOrientation
 
bool m_UseCustomRegion
 
bool m_VertexConnectHighPixels
 

Additional Inherited Members

- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 

Member Typedef Documentation

template<class TInputImage >
typedef SmartPointer< const Self > itk::ContourExtractor2DImageFilter< TInputImage >::ConstPointer

Definition at line 112 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef vcl_list< ContourType > itk::ContourExtractor2DImageFilter< TInputImage >::ContourContainer
private

Definition at line 235 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef ContourContainer::iterator itk::ContourExtractor2DImageFilter< TInputImage >::ContourRef
private

Definition at line 236 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef InputImageType::Pointer itk::ContourExtractor2DImageFilter< TInputImage >::InputImagePointer

Image and path typedef support.

Definition at line 118 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef TInputImage itk::ContourExtractor2DImageFilter< TInputImage >::InputImageType

Convenient typedefs for simplifying declarations.

Definition at line 105 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef InputImageType::IndexType itk::ContourExtractor2DImageFilter< TInputImage >::InputIndexType

Definition at line 123 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef InputImageType::OffsetType itk::ContourExtractor2DImageFilter< TInputImage >::InputOffsetType

Definition at line 124 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef InputImageType::PixelType itk::ContourExtractor2DImageFilter< TInputImage >::InputPixelType

Definition at line 122 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef NumericTraits< InputPixelType >::RealType itk::ContourExtractor2DImageFilter< TInputImage >::InputRealType

Real type associated to the input pixel type.

Definition at line 131 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef InputImageType::RegionType itk::ContourExtractor2DImageFilter< TInputImage >::InputRegionType

Definition at line 125 of file itkContourExtractor2DImageFilter.h.

Definition at line 126 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef PolyLineParametricPath< 2 > itk::ContourExtractor2DImageFilter< TInputImage >::OutputPathType

Definition at line 106 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef SmartPointer< Self > itk::ContourExtractor2DImageFilter< TInputImage >::Pointer

Definition at line 111 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef ContourExtractor2DImageFilter itk::ContourExtractor2DImageFilter< TInputImage >::Self

Standard class typedefs.

Definition at line 109 of file itkContourExtractor2DImageFilter.h.

Definition at line 110 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef VertexToContourMap::value_type itk::ContourExtractor2DImageFilter< TInputImage >::VertexContourRefPair
private

Definition at line 284 of file itkContourExtractor2DImageFilter.h.

Definition at line 134 of file itkContourExtractor2DImageFilter.h.

Definition at line 128 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef VertexToContourMap::iterator itk::ContourExtractor2DImageFilter< TInputImage >::VertexMapIterator
private

Definition at line 283 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
typedef itksys::hash_map< VertexType, ContourRef, VertexHash > itk::ContourExtractor2DImageFilter< TInputImage >::VertexToContourMap
private

Definition at line 282 of file itkContourExtractor2DImageFilter.h.

Definition at line 127 of file itkContourExtractor2DImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage >
itk::ContourExtractor2DImageFilter< TInputImage >::ContourExtractor2DImageFilter ( )
protected

End concept checking

template<class TInputImage >
virtual itk::ContourExtractor2DImageFilter< TInputImage >::~ContourExtractor2DImageFilter ( )
protectedvirtual
template<class TInputImage >
itk::ContourExtractor2DImageFilter< TInputImage >::ContourExtractor2DImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::AddSegment ( const VertexType  from,
const VertexType  to 
)
private
template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::ClearRequestedRegion ( )
template<class TInputImage >
virtual::itk::LightObject::Pointer itk::ContourExtractor2DImageFilter< TInputImage >::CreateAnother ( void  ) const
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.

template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::FillOutputs ( )
private
template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::GenerateData ( void  )
protectedvirtual

This method causes the filter to generate its output.

Reimplemented from itk::ProcessObject.

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::GenerateInputRequestedRegion ( ) throw ( InvalidRequestedRegionError )
protectedvirtual

ContourExtractor2DImageFilter manually controls the input requested region via SetRequestedRegion and ClearRequestedRegion, so it must override the superclass method.

Reimplemented from itk::ProcessObject.

template<class TInputImage >
virtual const InputRealType& itk::ContourExtractor2DImageFilter< TInputImage >::GetContourValue ( )
virtual

Set/Get the image intensity value that the contours should follow. This is the equivalent of an iso-value in Marching Squares.

template<class TInputImage >
virtual const char* itk::ContourExtractor2DImageFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >.

template<class TInputImage >
virtual const InputRegionType& itk::ContourExtractor2DImageFilter< TInputImage >::GetRequestedRegion ( )
virtual
template<class TInputImage >
virtual const bool& itk::ContourExtractor2DImageFilter< TInputImage >::GetReverseContourOrientation ( )
virtual

Control the orientation of the contours with reference to the image gradient. (See class documentation.)

template<class TInputImage >
virtual const bool& itk::ContourExtractor2DImageFilter< TInputImage >::GetVertexConnectHighPixels ( )
virtual

Control whether high- or low-valued pixels are vertex-connected. Default is for low-valued pixels to be vertex-connected. (See class documentation.)

template<class TInputImage >
VertexType itk::ContourExtractor2DImageFilter< TInputImage >::InterpolateContourPosition ( InputPixelType  fromValue,
InputPixelType  toValue,
InputIndexType  fromIndex,
InputOffsetType  toOffset 
)
private
template<class TInputImage >
static Pointer itk::ContourExtractor2DImageFilter< TInputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::operator= ( const Self )
private
template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
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::ImageToPathFilter< TInputImage, PolyLineParametricPath< 2 > >.

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::ReverseContourOrientationOff ( )
virtual

Control the orientation of the contours with reference to the image gradient. (See class documentation.)

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::ReverseContourOrientationOn ( )
virtual

Control the orientation of the contours with reference to the image gradient. (See class documentation.)

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::SetContourValue ( InputRealType  _arg)
virtual

Set/Get the image intensity value that the contours should follow. This is the equivalent of an iso-value in Marching Squares.

template<class TInputImage >
void itk::ContourExtractor2DImageFilter< TInputImage >::SetRequestedRegion ( const InputRegionType  region)

Control whether the largest possible input region is used, or if a custom requested region is to be used.

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::SetReverseContourOrientation ( bool  _arg)
virtual

Control the orientation of the contours with reference to the image gradient. (See class documentation.)

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::SetVertexConnectHighPixels ( bool  _arg)
virtual

Control whether high- or low-valued pixels are vertex-connected. Default is for low-valued pixels to be vertex-connected. (See class documentation.)

template<class TInputImage >
itk::ContourExtractor2DImageFilter< TInputImage >::typedef ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), 2 >  )

Begin concept checking This class requires DimensionShouldBe2 in the form of ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension), 2 > )

template<class TInputImage >
itk::ContourExtractor2DImageFilter< TInputImage >::typedef ( Concept::Comparable< InputPixelType )

This class requires InputPixelTypeComparable in the form of ( Concept::Comparable< InputPixelType > )

template<class TInputImage >
itk::ContourExtractor2DImageFilter< TInputImage >::typedef ( Concept::HasPixelTraits< InputPixelType )

This class requires InputHasPixelTraitsCheck in the form of ( Concept::HasPixelTraits< InputPixelType > )

template<class TInputImage >
itk::ContourExtractor2DImageFilter< TInputImage >::typedef ( Concept::HasNumericTraits< InputPixelType )

This class requires InputHasNumericTraitsCheck in the form of ( Concept::HasNumericTraits< InputPixelType > )

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::VertexConnectHighPixelsOff ( )
virtual

Control whether high- or low-valued pixels are vertex-connected. Default is for low-valued pixels to be vertex-connected. (See class documentation.)

template<class TInputImage >
virtual void itk::ContourExtractor2DImageFilter< TInputImage >::VertexConnectHighPixelsOn ( )
virtual

Control whether high- or low-valued pixels are vertex-connected. Default is for low-valued pixels to be vertex-connected. (See class documentation.)

Member Data Documentation

template<class TInputImage >
const unsigned int itk::ContourExtractor2DImageFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension
static

Extract dimension from input and output image.

Definition at line 102 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
VertexToContourMap itk::ContourExtractor2DImageFilter< TInputImage >::m_ContourEnds
private

Definition at line 291 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
ContourContainer itk::ContourExtractor2DImageFilter< TInputImage >::m_Contours
private

Definition at line 287 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
VertexToContourMap itk::ContourExtractor2DImageFilter< TInputImage >::m_ContourStarts
private

Definition at line 290 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
InputRealType itk::ContourExtractor2DImageFilter< TInputImage >::m_ContourValue
private

Definition at line 204 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
unsigned int itk::ContourExtractor2DImageFilter< TInputImage >::m_NumberOfContoursCreated
private

Definition at line 209 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
InputRegionType itk::ContourExtractor2DImageFilter< TInputImage >::m_RequestedRegion
private

Definition at line 208 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
bool itk::ContourExtractor2DImageFilter< TInputImage >::m_ReverseContourOrientation
private

Definition at line 205 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
bool itk::ContourExtractor2DImageFilter< TInputImage >::m_UseCustomRegion
private

Definition at line 207 of file itkContourExtractor2DImageFilter.h.

template<class TInputImage >
bool itk::ContourExtractor2DImageFilter< TInputImage >::m_VertexConnectHighPixels
private

Definition at line 206 of file itkContourExtractor2DImageFilter.h.


The documentation for this class was generated from the following file: