ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkAnchorOpenCloseImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
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< Self > | Pointer |
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 &) |
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.
typedef AnchorErodeDilateLine< InputImagePixelType, TCompare2 > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorLineDilateType [private] |
Definition at line 117 of file itkAnchorOpenCloseImageFilter.h.
typedef AnchorErodeDilateLine< InputImagePixelType, TCompare1 > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorLineErodeType [private] |
Definition at line 114 of file itkAnchorOpenCloseImageFilter.h.
typedef AnchorOpenCloseLine< InputImagePixelType, TCompare1 > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorLineOpenType [private] |
Definition at line 112 of file itkAnchorOpenCloseImageFilter.h.
typedef BresType::OffsetArray itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::BresOffsetArray [private] |
Definition at line 104 of file itkAnchorOpenCloseImageFilter.h.
typedef BresenhamLine< itkGetStaticConstMacro(InputImageDimension) > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::BresType [private] |
Definition at line 103 of file itkAnchorOpenCloseImageFilter.h.
typedef SmartPointer< const Self > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::ConstPointer |
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.
Definition at line 61 of file itkAnchorOpenCloseImageFilter.h.
typedef InputImageType::ConstPointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImageConstPointer |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 71 of file itkAnchorOpenCloseImageFilter.h.
typedef InputImageType::PixelType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImagePixelType |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 73 of file itkAnchorOpenCloseImageFilter.h.
typedef InputImageType::Pointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImagePointer |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 70 of file itkAnchorOpenCloseImageFilter.h.
typedef InputImageType::RegionType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::InputImageRegionType |
Reimplemented from itk::ImageToImageFilter< TImage, TImage >.
Definition at line 72 of file itkAnchorOpenCloseImageFilter.h.
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.
typedef KernelType::LType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::KernelLType |
Definition at line 67 of file itkAnchorOpenCloseImageFilter.h.
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.
typedef SmartPointer< Self > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::Pointer |
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.
Definition at line 60 of file itkAnchorOpenCloseImageFilter.h.
typedef AnchorOpenCloseImageFilter itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::Self |
Standard class typedefs.
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.
Definition at line 57 of file itkAnchorOpenCloseImageFilter.h.
typedef KernelImageFilter< TImage, TImage, TKernel > itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::Superclass |
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.
Definition at line 59 of file itkAnchorOpenCloseImageFilter.h.
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorOpenCloseImageFilter | ( | ) | [protected] |
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::~AnchorOpenCloseImageFilter | ( | ) | [inline, protected] |
Definition at line 91 of file itkAnchorOpenCloseImageFilter.h.
itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::AnchorOpenCloseImageFilter | ( | const Self & | ) | [private] |
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 >.
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] |
virtual const char* itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::GetNameOfClass | ( | ) | const [virtual] |
Runtime information support.
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
static Pointer itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::New | ( | ) | [static] |
Standard New method.
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.
void itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::operator= | ( | const Self & | ) | [private] |
kernel or structuring element to use.
Reimplemented from itk::KernelImageFilter< TImage, TImage, TKernel >.
Reimplemented in itk::AnchorCloseImageFilter< TImage, TKernel >, and itk::AnchorOpenImageFilter< TImage, TKernel >.
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 >.
void itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::ThreadedGenerateData | ( | const InputImageRegionType & | outputRegionForThread, |
ThreadIdType | threadId | ||
) | [protected] |
Multi-thread version GenerateData.
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.
InputImagePixelType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::m_Boundary1 [protected] |
Definition at line 98 of file itkAnchorOpenCloseImageFilter.h.
InputImagePixelType itk::AnchorOpenCloseImageFilter< TImage, TKernel, TCompare1, TCompare2 >::m_Boundary2 [protected] |
Definition at line 98 of file itkAnchorOpenCloseImageFilter.h.
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.