RTK  2.6.0
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 void SetRadius (MedianRadiusType _arg)
 
virtual MedianRadiusType GetRadius ()
 
virtual void SetThresholdMultiplier (double _arg)
 
virtual double GetThresholdMultiplier ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ConditionalMedianImageFilter ()
 
void DynamicThreadedGenerateData (const typename TInputImage::RegionType &outputRegionForThread) override
 
template<>
RTK_EXPORT void DynamicThreadedGenerateData (const itk::VectorImage< float, 3 >::RegionType &outputRegionForThread)
 
void GenerateInputRequestedRegion () override
 
 ~ConditionalMedianImageFilter () override=default
 

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

◆ MedianRadiusType

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

Definition at line 58 of file rtkConditionalMedianImageFilter.h.

◆ Pointer

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

Definition at line 57 of file rtkConditionalMedianImageFilter.h.

◆ Self

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

Standard class type alias.

Definition at line 55 of file rtkConditionalMedianImageFilter.h.

◆ Superclass

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

Definition at line 56 of file rtkConditionalMedianImageFilter.h.

Constructor & Destructor Documentation

◆ ConditionalMedianImageFilter()

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

◆ ~ConditionalMedianImageFilter()

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

Member Function Documentation

◆ CreateAnother()

template<typename TInputImage>
virtual::itk::LightObject::Pointer rtk::ConditionalMedianImageFilter< TInputImage >::CreateAnother ( ) const
virtual

Reimplemented from itk::Object.

◆ DynamicThreadedGenerateData() [1/2]

template<typename TInputImage>
void rtk::ConditionalMedianImageFilter< TInputImage >::DynamicThreadedGenerateData ( const typename TInputImage::RegionType outputRegionForThread)
overrideprotected

Does the real work.

◆ DynamicThreadedGenerateData() [2/2]

template<>
RTK_EXPORT void rtk::ConditionalMedianImageFilter< itk::VectorImage< float, 3 > >::DynamicThreadedGenerateData ( const itk::VectorImage< float, 3 >::RegionType outputRegionForThread)
protected

◆ GenerateInputRequestedRegion()

template<typename TInputImage>
void rtk::ConditionalMedianImageFilter< TInputImage >::GenerateInputRequestedRegion ( )
overrideprotectedvirtual

◆ GetNameOfClass()

template<typename TInputImage>
virtual const char* rtk::ConditionalMedianImageFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

◆ GetRadius()

template<typename TInputImage>
virtual MedianRadiusType rtk::ConditionalMedianImageFilter< TInputImage >::GetRadius ( )
virtual

Set/Get neighborhood radius

◆ GetThresholdMultiplier()

template<typename TInputImage>
virtual double rtk::ConditionalMedianImageFilter< TInputImage >::GetThresholdMultiplier ( )
virtual

Set/Get neighborhood radius

◆ New()

template<typename TInputImage>
static Pointer rtk::ConditionalMedianImageFilter< TInputImage >::New ( )
static

Method for creation through the object factory.

◆ SetRadius()

template<typename TInputImage>
virtual void rtk::ConditionalMedianImageFilter< TInputImage >::SetRadius ( MedianRadiusType  _arg)
virtual

Set/Get neighborhood radius

◆ SetThresholdMultiplier()

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

Set/Get neighborhood radius

Member Data Documentation

◆ m_Radius

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

Definition at line 92 of file rtkConditionalMedianImageFilter.h.

◆ m_ThresholdMultiplier

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

Definition at line 93 of file rtkConditionalMedianImageFilter.h.


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