ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkAreaClosingImageFilter.h>
Morphological closing 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. https://hdl.handle.net/1926/1316 http://www.insight-journal.org/browse/publication/203
Definition at line 59 of file itkAreaClosingImageFilter.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 AreaClosingImageFilter | Self |
typedef TInputImage::SizeType | SizeType |
typedef AttributeMorphologyBaseImageFilter < TInputImage, TOutputImage, TAttribute, std::less < typename TInputImage::PixelType > > | Superclass |
Public Types inherited from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::less< TInputImage::PixelType > > | |
typedef TAttribute | AttributeType |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage::IndexType | IndexType |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef TInputImage | InputImageType |
typedef TInputImage::InternalPixelType | InputInternalPixelType |
typedef TInputImage::PixelType | InputPixelType |
typedef std::list< IndexType > | ListType |
typedef TInputImage::OffsetType | OffsetType |
typedef TOutputImage | OutputImageType |
typedef TOutputImage::InternalPixelType | OutputInternalPixelType |
typedef TOutputImage::PixelType | OutputPixelType |
typedef SmartPointer< Self > | Pointer |
typedef TOutputImage::RegionType | RegionType |
typedef AttributeMorphologyBaseImageFilter | Self |
typedef TInputImage::SizeType | SizeType |
typedef ImageToImageFilter < TInputImage, TOutputImage > | Superclass |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputImagePixelType | OutputImagePixelType |
typedef Superclass::OutputImageRegionType | OutputImageRegionType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToImageFilter | Self |
typedef ImageSource< TOutputImage > | Superclass |
Public Types inherited from itk::ImageSource< TOutputImage > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef Superclass::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef OutputImageType::PixelType | OutputImagePixelType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef SmartPointer< Self > | Pointer |
typedef ImageSource | Self |
typedef ProcessObject | Superclass |
Public Types inherited from itk::ProcessObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
typedef DataObject::Pointer | DataObjectPointer |
typedef std::vector < DataObjectPointer > | DataObjectPointerArray |
typedef DataObjectPointerArray::size_type | DataObjectPointerArraySizeType |
typedef MultiThreader | MultiThreaderType |
typedef std::vector < DataObjectIdentifierType > | NameArray |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::less< TInputImage::PixelType > > | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::less< TInputImage::PixelType > > | |
static const unsigned int | ImageDimension |
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 > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
bool | m_UseImageSpacing |
typedef TAttribute itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::AttributeType |
Definition at line 84 of file itkAreaClosingImageFilter.h.
typedef SmartPointer< const Self > itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::ConstPointer |
Definition at line 71 of file itkAreaClosingImageFilter.h.
typedef TInputImage::IndexType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::IndexType |
Definition at line 81 of file itkAreaClosingImageFilter.h.
typedef TInputImage::InternalPixelType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::InputInternalPixelType |
Definition at line 80 of file itkAreaClosingImageFilter.h.
typedef TInputImage::PixelType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::InputPixelType |
Definition at line 79 of file itkAreaClosingImageFilter.h.
typedef TInputImage::OffsetType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::OffsetType |
Definition at line 82 of file itkAreaClosingImageFilter.h.
typedef TOutputImage::InternalPixelType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::OutputInternalPixelType |
Definition at line 78 of file itkAreaClosingImageFilter.h.
typedef TOutputImage::PixelType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::OutputPixelType |
Extract some information from the image types. Dimensionality of the two images is assumed to be the same.
Definition at line 77 of file itkAreaClosingImageFilter.h.
typedef SmartPointer< Self > itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::Pointer |
Definition at line 70 of file itkAreaClosingImageFilter.h.
typedef AreaClosingImageFilter itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::Self |
Definition at line 65 of file itkAreaClosingImageFilter.h.
typedef TInputImage::SizeType itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::SizeType |
Definition at line 83 of file itkAreaClosingImageFilter.h.
typedef AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::less< typename TInputImage::PixelType > > itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::Superclass |
Definition at line 68 of file itkAreaClosingImageFilter.h.
|
inlineprotected |
Definition at line 105 of file itkAreaClosingImageFilter.h.
References itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::m_UseImageSpacing.
|
inlineprotectedvirtual |
Definition at line 110 of file itkAreaClosingImageFilter.h.
|
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.
|
inlineoverrideprotectedvirtual |
A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.
Reimplemented from itk::ImageSource< TOutputImage >.
Definition at line 112 of file itkAreaClosingImageFilter.h.
References itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, TFunction >::GenerateData(), itk::ImageToImageFilter< TInputImage, TOutputImage >::GetInput(), itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::ImageDimension, itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::less< TInputImage::PixelType > >::m_AttributeValuePerPixel, and itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::m_UseImageSpacing.
|
virtual |
Runtime information support.
Reimplemented from itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, std::less< TInputImage::PixelType > >.
|
virtual |
Set/Get whether the image spacing is used or not - defaults to true.
|
static |
Method for creation through the object factory.
|
inlineoverrideprotectedvirtual |
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::ImageToImageFilter< TInputImage, TOutputImage >.
Definition at line 131 of file itkAreaClosingImageFilter.h.
References itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::m_UseImageSpacing, and itk::AttributeMorphologyBaseImageFilter< TInputImage, TOutputImage, TAttribute, TFunction >::PrintSelf().
|
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 |
Definition at line 87 of file itkAreaClosingImageFilter.h.
Referenced by itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::GenerateData().
|
private |
Definition at line 139 of file itkAreaClosingImageFilter.h.
Referenced by itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::AreaClosingImageFilter(), itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::GenerateData(), and itk::AreaClosingImageFilter< TInputImage, TOutputImage, TAttribute >::PrintSelf().