ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkAreaOpeningImageFilter.h>
Public Types | |
typedef TAttribute | AttributeType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::InternalPixelType | InputInternalPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef TInputImage::OffsetType | OffsetType |
typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
typedef TOutputImage::PixelType | OutputPixelType |
typedef SmartPointer< Self > | Pointer |
typedef AreaOpeningImageFilter | Self |
typedef TInputImage::SizeType | SizeType |
typedef AttributeMorphologyBaseImageFilter < TInputImage, TOutputImage, TAttribute, std::greater < typename TInputImage::PixelType > > | Superclass |
Public Types inherited from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > > | |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef TInputImage | InputImageType |
typedef std::list< IndexType > | ListType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::RegionType | RegionType |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::RegionType | InputImageRegionType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::Pointer | OutputImagePointer |
Public Types inherited from itk::ProcessObject | |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef std::vector < DataObjectIdentifierType > | NameArray |
Public Types inherited from itk::Object | |
Public Types inherited from itk::LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > > | |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > |
Private Member Functions | |
AreaOpeningImageFilter (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
bool | m_UseImageSpacing |
virtual void | SetUseImageSpacing (bool _arg) |
virtual const bool & | GetUseImageSpacing () |
virtual void | UseImageSpacingOn () |
virtual void | UseImageSpacingOff () |
AreaOpeningImageFilter () |
Additional Inherited Members | |
Protected Attributes inherited from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > > | |
AttributeType | m_AttributeValuePerPixel |
Morphological opening by attributes.
This is the base class for morphology attribute operations. Attribute openings remove blobs according to criteria such as area. When applied to grayscale images it has the effect of trimming peaks based on area while leaving the rest of the image unchanged. It is possible to use attributes besides area, but no others are implemented yet. This filter uses some dodgy coding practices - most notably copying the image data to a linear buffer to allow direct implementation of the published algorithm. It should therefore be quite a good candidate to carry out tests of itk iterator performance with randomish access patterns.
This filter is implemented using the method of Wilkinson, "A comparison of algorithms for Connected set openings and Closings", A. Meijster and M. H. Wilkinson, PAMI, vol 24, no. 4, April 2002. Attempts at implementing the method from ISMM 2000 are also included, but operation appears incorrect. Check the ifdefs if you are interested.
This code was contributed in the Insight Journal paper
"Grayscale morphological attribute operations" by Beare R. http://hdl.handle.net/1926/1316 http://www.insight-journal.org/browse/publication/203
Definition at line 60 of file itkAreaOpeningImageFilter.h.
typedef TAttribute itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::AttributeType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 85 of file itkAreaOpeningImageFilter.h.
typedef SmartPointer< const Self > itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::ConstPointer |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 72 of file itkAreaOpeningImageFilter.h.
typedef TInputImage::IndexType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::IndexType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 82 of file itkAreaOpeningImageFilter.h.
typedef TInputImage::InternalPixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::InputInternalPixelType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 81 of file itkAreaOpeningImageFilter.h.
typedef TInputImage::PixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::InputPixelType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 80 of file itkAreaOpeningImageFilter.h.
typedef TInputImage::OffsetType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::OffsetType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 83 of file itkAreaOpeningImageFilter.h.
typedef TOutputImage::InternalPixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::OutputInternalPixelType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 79 of file itkAreaOpeningImageFilter.h.
typedef TOutputImage::PixelType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::OutputPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 78 of file itkAreaOpeningImageFilter.h.
typedef SmartPointer< Self > itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::Pointer |
Smart pointer typedef support
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 71 of file itkAreaOpeningImageFilter.h.
typedef AreaOpeningImageFilter itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::Self |
Standard "Self" & Superclass typedef.
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 66 of file itkAreaOpeningImageFilter.h.
typedef TInputImage::SizeType itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::SizeType |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 84 of file itkAreaOpeningImageFilter.h.
typedef AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< typename TInputImage::PixelType > > itk::AreaOpeningImageFilter< TInputImage, TOutputImage, TAttribute >::Superclass |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 69 of file itkAreaOpeningImageFilter.h.
|
inlineprotected |
Set/Get whether the image spacing is used or not - defaults to true.
Definition at line 104 of file itkAreaOpeningImageFilter.h.
|
inlineprotectedvirtual |
Definition at line 110 of file itkAreaOpeningImageFilter.h.
|
private |
|
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::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
|
inlineprotectedvirtual |
Standard pipeline method.
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 112 of file itkAreaOpeningImageFilter.h.
|
virtual |
Runtime information support.
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
|
virtual |
Set/Get whether the image spacing is used or not - defaults to true.
|
static |
Method for creation through the object factory.
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
|
private |
PushBackInput(), PushFronInput() in the public section force the input to be the type expected by an ImageToImageFilter. However, these methods end of "hiding" the versions from the superclass (ProcessObject) whose arguments are DataObjects. Here, we re-expose the versions from ProcessObject to avoid warnings about hiding methods from the superclass.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
inlineprotectedvirtual |
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::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 131 of file itkAreaOpeningImageFilter.h.
|
virtual |
Set/Get whether the image spacing is used or not - defaults to true.
|
virtual |
Set/Get whether the image spacing is used or not - defaults to true.
|
virtual |
Set/Get whether the image spacing is used or not - defaults to true.
|
static |
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::greater< TInputImage::PixelType > >.
Definition at line 88 of file itkAreaOpeningImageFilter.h.
|
private |
Definition at line 142 of file itkAreaOpeningImageFilter.h.