RTK  2.0.1
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | 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

using MedianRadiusType = typename itk::ConstNeighborhoodIterator< TInputImage >::RadiusType
 
using Pointer = itk::SmartPointer< Self >
 
using Self = ConditionalMedianImageFilter
 
using Superclass = itk::InPlaceImageFilter< TInputImage >
 

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)
 
 ~ConditionalMedianImageFilter () override=default
 
void ThreadedGenerateData (const typename TInputImage::RegionType &outputRegionForThread, itk::ThreadIdType) override
 

Protected Attributes

MedianRadiusType m_Radius
 
double m_ThresholdMultiplier
 

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>
using rtk::ConditionalMedianImageFilter< TInputImage >::MedianRadiusType = typename itk::ConstNeighborhoodIterator<TInputImage>::RadiusType

Definition at line 58 of file rtkConditionalMedianImageFilter.h.

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

Definition at line 57 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
using rtk::ConditionalMedianImageFilter< TInputImage >::Self = ConditionalMedianImageFilter

Standard class type alias.

Definition at line 55 of file rtkConditionalMedianImageFilter.h.

template<typename TInputImage>
using rtk::ConditionalMedianImageFilter< TInputImage >::Superclass = itk::InPlaceImageFilter<TInputImage>

Definition at line 56 of file rtkConditionalMedianImageFilter.h.

Constructor & Destructor Documentation

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

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>
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

Does the real work.

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 88 of file rtkConditionalMedianImageFilter.h.

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

Definition at line 89 of file rtkConditionalMedianImageFilter.h.


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