OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::BoxAndWhiskerImageFilter< TInputImage > Class Template Reference

#include <otbBoxAndWhiskerImageFilter.h>

+ Inheritance diagram for otb::BoxAndWhiskerImageFilter< TInputImage >:
+ Collaboration diagram for otb::BoxAndWhiskerImageFilter< TInputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef Superclass::InputImageConstPointer InputImageConstPointer
 
typedef Superclass::InputImagePixelType InputImagePixelType
 
typedef Superclass::InputImagePointer InputImagePointer
 
typedef Superclass::InputImageRegionType InputImageRegionType
 
typedef Superclass::InputImageType InputImageType
 
typedef Superclass::OutputImagePixelType OutputImagePixelType
 
typedef Superclass::OutputImagePointer OutputImagePointer
 
typedef Superclass::OutputImageRegionType OutputImageRegionType
 
typedef Superclass::OutputImageType OutputImageType
 
typedef InputImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef InputImageType::RegionType RegionType
 
typedef BoxAndWhiskerImageFilter Self
 
typedef InputImageType::SizeType SizeType
 
typedef itk::InPlaceImageFilter< TInputImage > Superclass
 
typedef InputImageType::InternalPixelType ValueType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 

Static Public Member Functions

static Pointer New ()
 
static const unsigned int InputImageDimension = InputImageType::ImageDimension
 
static const unsigned int OutputImageDimension = OutputImageType::ImageDimension
 
SizeType m_Radius
 
double m_Beta
 
long int m_NumberFound
 
virtual void SetRadius (SizeType _arg)
 
virtual const SizeTypeGetRadius () const
 
virtual double GetBeta () const
 
virtual void SetBeta (double _arg)
 
virtual unsigned int GetNumberFound () const
 
 BoxAndWhiskerImageFilter ()
 
 ~BoxAndWhiskerImageFilter () override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
void GenerateOutputInformation () override
 
void AllocateOutputs () override
 
PixelType PerformBoxAndWhiskerDetection (const PixelType &pixel)
 
 BoxAndWhiskerImageFilter (const Self &)
 
void operator= (const Self &)
 

Detailed Description

template<class TInputImage>
class otb::BoxAndWhiskerImageFilter< TInputImage >

This class performs the detection of outlier with the Box and Whisker technique.

This is appropriated to perform simple outlier detection over vector data. The input image has to contain vector pixel through a VectorImage type. When an outlier is detected, it is treated to as an missing value through the function

otb::EuclideanDistanceMetricWithMissingValue::SetToMissingValue()

.

A component is considered to as a missing value when $ \| x_i - \beta \left( x_{3/4} - x_{1/4} \right) \| > \| x_{1/2} \| $ where $ x_{1/4}, x_{1/2}, x_{3/4} $ stand for the first, second (median) and third quantile values.

See also
EuclideanDistanceMetricWithMissingValue

Definition at line 50 of file otbBoxAndWhiskerImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage >
typedef itk::SmartPointer<const Self> otb::BoxAndWhiskerImageFilter< TInputImage >::ConstPointer

Definition at line 57 of file otbBoxAndWhiskerImageFilter.h.

◆ InputImageConstPointer

template<class TInputImage >
typedef Superclass::InputImageConstPointer otb::BoxAndWhiskerImageFilter< TInputImage >::InputImageConstPointer

Definition at line 73 of file otbBoxAndWhiskerImageFilter.h.

◆ InputImagePixelType

template<class TInputImage >
typedef Superclass::InputImagePixelType otb::BoxAndWhiskerImageFilter< TInputImage >::InputImagePixelType

Definition at line 75 of file otbBoxAndWhiskerImageFilter.h.

◆ InputImagePointer

template<class TInputImage >
typedef Superclass::InputImagePointer otb::BoxAndWhiskerImageFilter< TInputImage >::InputImagePointer

Definition at line 72 of file otbBoxAndWhiskerImageFilter.h.

◆ InputImageRegionType

template<class TInputImage >
typedef Superclass::InputImageRegionType otb::BoxAndWhiskerImageFilter< TInputImage >::InputImageRegionType

Definition at line 74 of file otbBoxAndWhiskerImageFilter.h.

◆ InputImageType

template<class TInputImage >
typedef Superclass::InputImageType otb::BoxAndWhiskerImageFilter< TInputImage >::InputImageType

Definition at line 71 of file otbBoxAndWhiskerImageFilter.h.

◆ OutputImagePixelType

template<class TInputImage >
typedef Superclass::OutputImagePixelType otb::BoxAndWhiskerImageFilter< TInputImage >::OutputImagePixelType

Definition at line 69 of file otbBoxAndWhiskerImageFilter.h.

◆ OutputImagePointer

template<class TInputImage >
typedef Superclass::OutputImagePointer otb::BoxAndWhiskerImageFilter< TInputImage >::OutputImagePointer

Definition at line 67 of file otbBoxAndWhiskerImageFilter.h.

◆ OutputImageRegionType

template<class TInputImage >
typedef Superclass::OutputImageRegionType otb::BoxAndWhiskerImageFilter< TInputImage >::OutputImageRegionType

Definition at line 68 of file otbBoxAndWhiskerImageFilter.h.

◆ OutputImageType

template<class TInputImage >
typedef Superclass::OutputImageType otb::BoxAndWhiskerImageFilter< TInputImage >::OutputImageType

Template parameters typedefs

Definition at line 63 of file otbBoxAndWhiskerImageFilter.h.

◆ PixelType

template<class TInputImage >
typedef InputImageType::PixelType otb::BoxAndWhiskerImageFilter< TInputImage >::PixelType

Definition at line 77 of file otbBoxAndWhiskerImageFilter.h.

◆ Pointer

template<class TInputImage >
typedef itk::SmartPointer<Self> otb::BoxAndWhiskerImageFilter< TInputImage >::Pointer

Definition at line 56 of file otbBoxAndWhiskerImageFilter.h.

◆ RegionType

template<class TInputImage >
typedef InputImageType::RegionType otb::BoxAndWhiskerImageFilter< TInputImage >::RegionType

Definition at line 80 of file otbBoxAndWhiskerImageFilter.h.

◆ Self

template<class TInputImage >
typedef BoxAndWhiskerImageFilter otb::BoxAndWhiskerImageFilter< TInputImage >::Self

Standard class typedefs.

Definition at line 54 of file otbBoxAndWhiskerImageFilter.h.

◆ SizeType

template<class TInputImage >
typedef InputImageType::SizeType otb::BoxAndWhiskerImageFilter< TInputImage >::SizeType

Definition at line 79 of file otbBoxAndWhiskerImageFilter.h.

◆ Superclass

template<class TInputImage >
typedef itk::InPlaceImageFilter<TInputImage> otb::BoxAndWhiskerImageFilter< TInputImage >::Superclass

Definition at line 55 of file otbBoxAndWhiskerImageFilter.h.

◆ ValueType

template<class TInputImage >
typedef InputImageType::InternalPixelType otb::BoxAndWhiskerImageFilter< TInputImage >::ValueType

Definition at line 78 of file otbBoxAndWhiskerImageFilter.h.

Constructor & Destructor Documentation

◆ BoxAndWhiskerImageFilter() [1/2]

template<class TInputImage >
otb::BoxAndWhiskerImageFilter< TInputImage >::BoxAndWhiskerImageFilter
protected

Dimension

Definition at line 40 of file otbBoxAndWhiskerImageFilter.hxx.

◆ ~BoxAndWhiskerImageFilter()

template<class TInputImage >
otb::BoxAndWhiskerImageFilter< TInputImage >::~BoxAndWhiskerImageFilter ( )
inlineoverrideprotected

Dimension

Definition at line 100 of file otbBoxAndWhiskerImageFilter.h.

◆ BoxAndWhiskerImageFilter() [2/2]

template<class TInputImage >
otb::BoxAndWhiskerImageFilter< TInputImage >::BoxAndWhiskerImageFilter ( const Self )
private

Dimension

Member Function Documentation

◆ AllocateOutputs()

template<class TInputImage >
void otb::BoxAndWhiskerImageFilter< TInputImage >::AllocateOutputs
overrideprotected

Dimension

Definition at line 141 of file otbBoxAndWhiskerImageFilter.hxx.

◆ CreateAnother()

template<class TInputImage >
virtual::itk::LightObject::Pointer otb::BoxAndWhiskerImageFilter< TInputImage >::CreateAnother ( void  ) const

◆ GenerateOutputInformation()

template<class TInputImage >
void otb::BoxAndWhiskerImageFilter< TInputImage >::GenerateOutputInformation
overrideprotected

Dimension

Definition at line 132 of file otbBoxAndWhiskerImageFilter.hxx.

◆ GetBeta()

template<class TInputImage >
virtual double otb::BoxAndWhiskerImageFilter< TInputImage >::GetBeta ( ) const
virtual

Fix the whisker

◆ GetNameOfClass()

template<class TInputImage >
virtual const char* otb::BoxAndWhiskerImageFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetNumberFound()

template<class TInputImage >
virtual unsigned int otb::BoxAndWhiskerImageFilter< TInputImage >::GetNumberFound ( ) const
virtual

Dimension

◆ GetRadius()

template<class TInputImage >
virtual const SizeType& otb::BoxAndWhiskerImageFilter< TInputImage >::GetRadius ( ) const
virtual

Dimension

◆ New()

template<class TInputImage >
static Pointer otb::BoxAndWhiskerImageFilter< TInputImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputImage >
void otb::BoxAndWhiskerImageFilter< TInputImage >::operator= ( const Self )
private

Dimension

◆ PerformBoxAndWhiskerDetection()

template<class TInputImage >
BoxAndWhiskerImageFilter< TInputImage >::PixelType otb::BoxAndWhiskerImageFilter< TInputImage >::PerformBoxAndWhiskerDetection ( const PixelType pixel)
protected

Perform the outlier detection

Definition at line 98 of file otbBoxAndWhiskerImageFilter.hxx.

◆ SetBeta()

template<class TInputImage >
virtual void otb::BoxAndWhiskerImageFilter< TInputImage >::SetBeta ( double  _arg)
virtual

Dimension

◆ SetRadius()

template<class TInputImage >
virtual void otb::BoxAndWhiskerImageFilter< TInputImage >::SetRadius ( SizeType  _arg)
virtual

Get the Radius (all to 1)

◆ ThreadedGenerateData()

template<class TInputImage >
void otb::BoxAndWhiskerImageFilter< TInputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
overrideprotected

Main computation method implemented as a multithreaded filter

Process each of the boundary faces. These are N-d regions which border the edge of the buffer.

Definition at line 51 of file otbBoxAndWhiskerImageFilter.hxx.

Member Data Documentation

◆ InputImageDimension

template<class TInputImage >
const unsigned int otb::BoxAndWhiskerImageFilter< TInputImage >::InputImageDimension = InputImageType::ImageDimension
static

Dimension

Definition at line 83 of file otbBoxAndWhiskerImageFilter.h.

◆ m_Beta

template<class TInputImage >
double otb::BoxAndWhiskerImageFilter< TInputImage >::m_Beta
private

Dimension

Definition at line 118 of file otbBoxAndWhiskerImageFilter.h.

◆ m_NumberFound

template<class TInputImage >
long int otb::BoxAndWhiskerImageFilter< TInputImage >::m_NumberFound
private

Dimension

Definition at line 119 of file otbBoxAndWhiskerImageFilter.h.

◆ m_Radius

template<class TInputImage >
SizeType otb::BoxAndWhiskerImageFilter< TInputImage >::m_Radius
private

Dimension

Definition at line 117 of file otbBoxAndWhiskerImageFilter.h.

◆ OutputImageDimension

template<class TInputImage >
const unsigned int otb::BoxAndWhiskerImageFilter< TInputImage >::OutputImageDimension = OutputImageType::ImageDimension
static

Dimension

Definition at line 84 of file otbBoxAndWhiskerImageFilter.h.


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