ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 > Class Template Reference

#include <itkAnchorOpenCloseImageFilter.h>

+ Inheritance diagram for itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >:
+ Collaboration diagram for itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
InputImageType::ConstPointer 
InputImageConstPointer
typedef InputImageType::PixelType InputImagePixelType
typedef InputImageType::Pointer InputImagePointer
typedef InputImageType::RegionType InputImageRegionType
typedef TImage InputImageType
typedef KernelType::LType KernelLType
typedef TKernel KernelType
typedef SmartPointer< SelfPointer
typedef AnchorOpenCloseImageFilter Self
typedef KernelImageFilter
< TImage, TImage, TKernel > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int InputImageDimension = TImage::ImageDimension
static const unsigned int OutputImageDimension = TImage::ImageDimension

Protected Member Functions

 AnchorOpenCloseImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
void ThreadedGenerateData (const InputImageRegionType &outputRegionForThread, ThreadIdType threadId)
 ~AnchorOpenCloseImageFilter ()

Protected Attributes

InputImagePixelType m_Boundary1
InputImagePixelType m_Boundary2

Private Types

typedef AnchorErodeDilateLine
< InputImagePixelType,
TCompare2 > 
AnchorLineDilateType
typedef AnchorErodeDilateLine
< InputImagePixelType,
TCompare1 > 
AnchorLineErodeType
typedef AnchorOpenCloseLine
< InputImagePixelType,
TCompare1 > 
AnchorLineOpenType
typedef BresType::OffsetArray BresOffsetArray
typedef BresenhamLine
< itkGetStaticConstMacro(InputImageDimension) > 
BresType

Private Member Functions

 AnchorOpenCloseImageFilter (const Self &)
void DoFaceOpen (InputImageConstPointer input, InputImagePointer output, InputImagePixelType border, KernelLType line, AnchorLineOpenType &AnchorLineOpen, const BresOffsetArray LineOffsets, std::vector< InputImagePixelType > &outbuffer, const InputImageRegionType AllImage, const InputImageRegionType face)
void operator= (const Self &)

Detailed Description

template<class TImage, class TKernel, class TCompare1, class TCompare2>
class itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >

class to implement openings and closings using anchor methods.

Anchor methods directly implement opening/closing by line structuring elements, and erosion/dilation is slightly more complicated. This class used line structuring elements to produce more complex shaped SEs, and must be instantiated with a decomposable structuring element type such as FlatStructuringElement. The direct implementation of openings by lines gives a mechanism to short cut the decomposition slightly - e.g. in the case of a rectangle the basic decomposition is Ex Ey Ez Dz Dy Dz, which can be changed to Ex Ey Oz Dy Dx, where Ex, Dx and Ox indicate erosions, dilations and openings along the x direction. Because anchor operations do openings directly, this is a saving of one pass through the filter. Unfortunately it results in more complex template parameters because the appropriate comparison operations need to be passed in. The less

Definition at line 51 of file itkAnchorOpenCloseImageFilter.h.


Member Typedef Documentation

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef AnchorErodeDilateLine< InputImagePixelType, TCompare2 > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorLineDilateType [private]

Definition at line 117 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef AnchorErodeDilateLine< InputImagePixelType, TCompare1 > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorLineErodeType [private]

Definition at line 114 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef AnchorOpenCloseLine< InputImagePixelType, TCompare1 > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorLineOpenType [private]

Definition at line 112 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef BresType::OffsetArray itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::BresOffsetArray [private]

Definition at line 104 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef BresenhamLine< itkGetStaticConstMacro(InputImageDimension) > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::BresType [private]

Definition at line 103 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef SmartPointer< const Self > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::ConstPointer
template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef InputImageType::ConstPointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImageConstPointer

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 71 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef InputImageType::PixelType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImagePixelType

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 73 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef InputImageType::Pointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImagePointer

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 70 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef InputImageType::RegionType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImageRegionType

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 72 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef TImage itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImageType

Image related typedefs.

Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.

Definition at line 69 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef KernelType::LType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::KernelLType

Definition at line 67 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef TKernel itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::KernelType

Some convenient typedefs. Kernel typedef.

Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.

Definition at line 66 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef SmartPointer< Self > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::Pointer
template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef AnchorOpenCloseImageFilter itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::Self
template<class TImage, class TKernel, class TCompare1, class TCompare2>
typedef KernelImageFilter< TImage, TImage, TKernel > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::Superclass

Constructor & Destructor Documentation

template<class TImage, class TKernel, class TCompare1, class TCompare2>
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorOpenCloseImageFilter ( ) [protected]
template<class TImage, class TKernel, class TCompare1, class TCompare2>
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::~AnchorOpenCloseImageFilter ( ) [inline, protected]

Definition at line 91 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorOpenCloseImageFilter ( const Self ) [private]

Member Function Documentation

template<class TImage, class TKernel, class TCompare1, class TCompare2>
virtual::itk::LightObject::Pointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::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::KernelImageFilter< TImage, TImage, TKernel >.

Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
void itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::DoFaceOpen ( InputImageConstPointer  input,
InputImagePointer  output,
InputImagePixelType  border,
KernelLType  line,
AnchorLineOpenType AnchorLineOpen,
const BresOffsetArray  LineOffsets,
std::vector< InputImagePixelType > &  outbuffer,
const InputImageRegionType  AllImage,
const InputImageRegionType  face 
) [private]
template<class TImage, class TKernel, class TCompare1, class TCompare2>
virtual const char* itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::GetNameOfClass ( ) const [virtual]

Runtime information support.

Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
static Pointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::New ( ) [static]
template<class TImage, class TKernel, class TCompare1, class TCompare2>
void itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::operator= ( const Self ) [private]
template<class TImage, class TKernel, class TCompare1, class TCompare2>
void itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

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::KernelImageFilter< TImage, TImage, TKernel >.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
void itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::ThreadedGenerateData ( const InputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
) [protected]

Multi-thread version GenerateData.


Member Data Documentation

template<class TImage, class TKernel, class TCompare1, class TCompare2>
const unsigned int itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImageDimension = TImage::ImageDimension [static]

ImageDimension constants

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 77 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
InputImagePixelType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::m_Boundary1 [protected]

Definition at line 98 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
InputImagePixelType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::m_Boundary2 [protected]

Definition at line 98 of file itkAnchorOpenCloseImageFilter.h.

template<class TImage, class TKernel, class TCompare1, class TCompare2>
const unsigned int itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::OutputImageDimension = TImage::ImageDimension [static]

ImageDimension constants

Reimplemented from itk::ImageToImageFilter< TImage, TImage >.

Definition at line 79 of file itkAnchorOpenCloseImageFilter.h.


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