ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes
itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel > Class Template Reference

#include <itkMaskedRankImageFilter.h>

+ Inheritance diagram for itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >:
+ Collaboration diagram for itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >:

List of all members.

Public Types

typedef SmartPointer< const SelfConstPointer
typedef Superclass::HistogramType HistogramType
typedef TInputImage::IndexType IndexType
typedef TInputImage InputImageType
typedef TInputImage::PixelType InputPixelType
typedef KernelType::ConstIterator KernelIteratorType
typedef TKernel KernelType
typedef TInputImage::OffsetType OffsetType
typedef
Superclass::OutputImageRegionType 
OutputImageRegionType
typedef TOutputImage OutputImageType
typedef TOutputImage::PixelType OutputPixelType
typedef TInputImage::PixelType PixelType
typedef SmartPointer< SelfPointer
typedef KernelType::SizeType RadiusType
typedef TInputImage::RegionType RegionType
typedef MaskedRankImageFilter Self
typedef TInputImage::SizeType SizeType
typedef
MaskedMovingHistogramImageFilter
< TInputImage, TMaskImage,
TOutputImage, TKernel,
Function::RankHistogram
< typename
TInputImage::PixelType > > 
Superclass

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
virtual const char * GetNameOfClass () const
virtual float GetRank () const
bool GetUseVectorBasedAlgorithm ()
virtual void SetRank (float _arg)

Static Public Member Functions

static Pointer New ()

Static Public Attributes

static const unsigned int ImageDimension = TInputImage::ImageDimension

Protected Member Functions

void ConfigureHistogram (HistogramType &histogram)
 MaskedRankImageFilter ()
void PrintSelf (std::ostream &os, Indent indent) const
 ~MaskedRankImageFilter ()

Private Member Functions

 MaskedRankImageFilter (const Self &)
void operator= (const Self &)

Private Attributes

float m_Rank

Detailed Description

template<class TInputImage, class TMaskImage, class TOutputImage, class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
class itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >

Rank filter of a greyscale image.

Nonlinear filter in which each output pixel is a user defined rank of input pixels in a user defined neighborhood. The default rank is 0.5 (median). The boundary conditions are different to the standard itkMedianImageFilter. In this filter the neighborhood is cropped at the boundary, and is therefore smaller.

This filter uses a recursive implementation - essentially the one by Huang 1979, I believe, to compute the rank, and is therefore usually a lot faster than the direct implementation. The extensions to Huang are support for arbitary pixel types (using c++ maps) and arbitary neighborhoods. I presume that these are not new ideas.

This filter is based on the sliding window code from the consolidatedMorphology package on InsightJournal.

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: "Efficient implementation of kernel filtering" by Beare R., Lehmann G http://hdl.handle.net/1926/555 http://www.insight-journal.org/browse/publication/160

Author:
Richard Beare

Definition at line 66 of file itkMaskedRankImageFilter.h.


Member Typedef Documentation

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef SmartPointer< const Self > itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::ConstPointer
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef Superclass::HistogramType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::HistogramType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage::IndexType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::IndexType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::InputImageType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage::PixelType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::InputPixelType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef KernelType::ConstIterator itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::KernelIteratorType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TKernel itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::KernelType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage::OffsetType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::OffsetType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef Superclass::OutputImageRegionType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::OutputImageRegionType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TOutputImage itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::OutputImageType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TOutputImage::PixelType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::OutputPixelType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage::PixelType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::PixelType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef SmartPointer< Self > itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::Pointer
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef KernelType::SizeType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::RadiusType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage::RegionType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::RegionType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef MaskedRankImageFilter itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::Self
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef TInputImage::SizeType itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::SizeType
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
typedef MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, Function::RankHistogram< typename TInputImage::PixelType > > itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::Superclass

Constructor & Destructor Documentation

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::MaskedRankImageFilter ( ) [protected]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::~MaskedRankImageFilter ( ) [inline, protected]

Definition at line 123 of file itkMaskedRankImageFilter.h.

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::MaskedRankImageFilter ( const Self ) [private]

Member Function Documentation

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
void itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::ConfigureHistogram ( HistogramType histogram) [protected]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
virtual::itk::LightObject::Pointer itk::MaskedRankImageFilter< TInputImage, TMaskImage, 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::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, Function::RankHistogram< TInputImage::PixelType > >.

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
virtual const char* itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::GetNameOfClass ( ) const [virtual]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
virtual float itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::GetRank ( ) const [virtual]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
bool itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::GetUseVectorBasedAlgorithm ( ) [inline]

Definition at line 116 of file itkMaskedRankImageFilter.h.

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
static Pointer itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::New ( ) [static]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
void itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::operator= ( const Self ) [private]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
void itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::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::MaskedMovingHistogramImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel, Function::RankHistogram< TInputImage::PixelType > >.

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
virtual void itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::SetRank ( float  _arg) [virtual]

Member Data Documentation

template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
const unsigned int itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::ImageDimension = TInputImage::ImageDimension [static]
template<class TInputImage , class TMaskImage , class TOutputImage , class TKernel = FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension >>
float itk::MaskedRankImageFilter< TInputImage, TMaskImage, TOutputImage, TKernel >::m_Rank [private]

Definition at line 133 of file itkMaskedRankImageFilter.h.


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