RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
rtk::ConditionalMedianImageFilter< TInputImage > Class Template Reference

#include <rtkConditionalMedianImageFilter.h>

+ Inheritance diagram for rtk::ConditionalMedianImageFilter< TInputImage >:
+ Collaboration diagram for rtk::ConditionalMedianImageFilter< TInputImage >:

Public Types

typedef itk::ConstNeighborhoodIterator< TInputImage >::RadiusType MedianRadiusType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ConditionalMedianImageFilter Self
 
typedef itk::InPlaceImageFilter< TInputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
virtual MedianRadiusType GetRadius ()
 
virtual double GetThresholdMultiplier ()
 
virtual void SetRadius (MedianRadiusType _arg)
 
virtual void SetThresholdMultiplier (double _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ConditionalMedianImageFilter ()
 
void GenerateInputRequestedRegion () override
 
template<>
RTK_EXPORT void ThreadedGenerateData (const itk::VectorImage< float, 3 >::RegionType &outputRegionForThread, itk::ThreadIdType)
 
virtual ~ConditionalMedianImageFilter () override
 
void ThreadedGenerateData (const typename TInputImage::RegionType &outputRegionForThread, itk::ThreadIdType) override
 

Protected Attributes

MedianRadiusType m_Radius
 
double m_ThresholdMultiplier
 

Private Member Functions

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

Detailed Description

template<typename TInputImage>
class rtk::ConditionalMedianImageFilter< TInputImage >

Performs a median filtering on outlier pixels.

ConditionalMedianImageFilter computes the median of the pixel values in a neighborhood around each pixel. If the input pixel value is close to the computed median, it is kept unchanged and copied to the output. Otherwise it is replaced by the computed median. Note that if m_ThresholdMultiplier = 0, this filter behaves like a usual median filter, and if m_Radius = [0, 0, ..., 0], the image passes through unchanged.

Test:
TODO
Author
Cyril Mory

Definition at line 49 of file rtkConditionalMedianImageFilter.h.

Member Typedef Documentation

template<typename TInputImage>
typedef itk::ConstNeighborhoodIterator<TInputImage>::RadiusType rtk::ConditionalMedianImageFilter< TInputImage >::MedianRadiusType

Definition at line 56 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
typedef itk::SmartPointer< Self > rtk::ConditionalMedianImageFilter< TInputImage >::Pointer

Definition at line 55 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
typedef ConditionalMedianImageFilter rtk::ConditionalMedianImageFilter< TInputImage >::Self

Standard class typedefs.

Definition at line 53 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
typedef itk::InPlaceImageFilter<TInputImage> rtk::ConditionalMedianImageFilter< TInputImage >::Superclass

Definition at line 54 of file rtkConditionalMedianImageFilter.h.

Constructor & Destructor Documentation

template<typename TInputImage>
rtk::ConditionalMedianImageFilter< TInputImage >::ConditionalMedianImageFilter ( )
protected
template<typename TInputImage>
virtual rtk::ConditionalMedianImageFilter< TInputImage >::~ConditionalMedianImageFilter ( )
inlineoverrideprotectedvirtual

Definition at line 74 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
rtk::ConditionalMedianImageFilter< TInputImage >::ConditionalMedianImageFilter ( const Self )
private

Member Function Documentation

template<typename TInputImage>
virtual::itk::LightObject::Pointer rtk::ConditionalMedianImageFilter< TInputImage >::CreateAnother ( ) const
template<typename TInputImage>
void rtk::ConditionalMedianImageFilter< TInputImage >::GenerateInputRequestedRegion ( )
overrideprotected
template<typename TInputImage>
virtual const char* rtk::ConditionalMedianImageFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<typename TInputImage>
virtual MedianRadiusType rtk::ConditionalMedianImageFilter< TInputImage >::GetRadius ( )
virtual
template<typename TInputImage>
virtual double rtk::ConditionalMedianImageFilter< TInputImage >::GetThresholdMultiplier ( )
virtual
template<typename TInputImage>
static Pointer rtk::ConditionalMedianImageFilter< TInputImage >::New ( )
static

Method for creation through the object factory.

template<typename TInputImage>
void rtk::ConditionalMedianImageFilter< TInputImage >::operator= ( const Self )
private
template<typename TInputImage>
virtual void rtk::ConditionalMedianImageFilter< TInputImage >::SetRadius ( MedianRadiusType  _arg)
virtual

Set/Get neighborhood radius

template<typename TInputImage>
virtual void rtk::ConditionalMedianImageFilter< TInputImage >::SetThresholdMultiplier ( double  _arg)
virtual

Set/Get neighborhood radius

template<typename TInputImage>
void rtk::ConditionalMedianImageFilter< TInputImage >::ThreadedGenerateData ( const typename TInputImage::RegionType outputRegionForThread,
itk::ThreadIdType   
)
overrideprotected
template<>
RTK_EXPORT void rtk::ConditionalMedianImageFilter< itk::VectorImage< float, 3 > >::ThreadedGenerateData ( const itk::VectorImage< float, 3 >::RegionType outputRegionForThread,
itk::ThreadIdType   
)
protected

Member Data Documentation

template<typename TInputImage>
MedianRadiusType rtk::ConditionalMedianImageFilter< TInputImage >::m_Radius
protected

Definition at line 86 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
double rtk::ConditionalMedianImageFilter< TInputImage >::m_ThresholdMultiplier
protected

Definition at line 87 of file rtkConditionalMedianImageFilter.h.


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