ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkBinaryMorphologicalClosingImageFilter.h>
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::Pointer | InputImagePointer |
typedef TInputImage | InputImageType |
typedef TInputImage::PixelType | InputPixelType |
typedef TKernel | KernelType |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef TInputImage::PixelType | OutputPixelType |
typedef SmartPointer< Self > | Pointer |
typedef BinaryMorphologicalClosingImageFilter | Self |
typedef KernelImageFilter < TInputImage, TOutputImage, TKernel > | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual InputPixelType | GetForegroundValue () const |
virtual const char * | GetNameOfClass () const |
virtual void | SetForegroundValue (InputPixelType _arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | GenerateData () |
Private Member Functions | |
BinaryMorphologicalClosingImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
InputPixelType | m_ForegroundValue |
bool | m_SafeBorder |
virtual void | SetSafeBorder (bool _arg) |
virtual const bool & | GetSafeBorder () |
virtual void | SafeBorderOn () |
virtual void | SafeBorderOff () |
BinaryMorphologicalClosingImageFilter () | |
~BinaryMorphologicalClosingImageFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
binary morphological closing of an image.
This filter removes small (i.e., smaller than the structuring element) holes and tube like structures in the interior or at the boundaries of the image. The morphological closing of an image "f" is defined as: Closing(f) = Erosion(Dilation(f)).
The structuring element is assumed to be composed of binary values (zero or one). Only elements of the structuring element having values > 0 are candidates for affecting the center pixel.
This code was contributed in the Insight Journal paper: "Binary morphological closing and opening image filters" by Lehmann G. http://hdl.handle.net/1926/141 http://www.insight-journal.org/browse/publication/58
Definition at line 55 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef SmartPointer< const Self > itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::ConstPointer |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 63 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef InputImageType::Pointer itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::InputImagePointer |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 74 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef TInputImage itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::InputImageType |
Image related typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 70 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef TInputImage::PixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::InputPixelType |
Declaration of pixel type.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 78 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef TKernel itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::KernelType |
Kernel typedef.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 82 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef OutputImageType::RegionType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageRegionType |
Superclass typedefs.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 75 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef TOutputImage itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::OutputImageType |
Some convenient typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 73 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef TInputImage::PixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::OutputPixelType |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 79 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef SmartPointer< Self > itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::Pointer |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 62 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef BinaryMorphologicalClosingImageFilter itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::Self |
Standard class typedefs.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 60 of file itkBinaryMorphologicalClosingImageFilter.h.
typedef KernelImageFilter< TInputImage, TOutputImage, TKernel > itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::Superclass |
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
Definition at line 61 of file itkBinaryMorphologicalClosingImageFilter.h.
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::BinaryMorphologicalClosingImageFilter | ( | ) | [protected] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::~BinaryMorphologicalClosingImageFilter | ( | ) | [inline, protected] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
Definition at line 99 of file itkBinaryMorphologicalClosingImageFilter.h.
itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::BinaryMorphologicalClosingImageFilter | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::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< TInputImage, TOutputImage, TKernel >.
void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GenerateData | ( | ) | [protected, virtual] |
Single-threaded version of GenerateData. This filter delegates to GrayscaleDilateImageFilter GrayscaleErodeImageFilter.
Reimplemented from itk::ImageSource< TOutputImage >.
virtual InputPixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GetForegroundValue | ( | ) | const [virtual] |
Get the value in the image considered as "foreground". Defaults to maximum value of InputPixelType.
virtual const char* itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GetNameOfClass | ( | ) | const [virtual] |
Runtime information support.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
virtual const bool& itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::GetSafeBorder | ( | ) | [virtual] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
static Pointer itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::New | ( | ) | [static] |
Standard New method.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::operator= | ( | const Self & | ) | [private] |
kernel or structuring element to use.
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
Reimplemented from itk::KernelImageFilter< TInputImage, TOutputImage, TKernel >.
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SafeBorderOff | ( | ) | [virtual] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SafeBorderOn | ( | ) | [virtual] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SetForegroundValue | ( | InputPixelType | _arg | ) | [virtual] |
Set the value in the image to consider as "foreground". Defaults to maximum value of InputPixelType.
virtual void itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::SetSafeBorder | ( | bool | _arg | ) | [virtual] |
A safe border is added to input image to avoid borders effects and remove it once the closing is done
InputPixelType itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::m_ForegroundValue [private] |
Definition at line 113 of file itkBinaryMorphologicalClosingImageFilter.h.
bool itk::BinaryMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >::m_SafeBorder [private] |
Definition at line 115 of file itkBinaryMorphologicalClosingImageFilter.h.