OTB  9.0.0
Orfeo Toolbox
List of all members
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask > Class Template Reference

#include <otbDisparityMapMedianFilter.h>

+ Inheritance diagram for otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >:
+ Collaboration diagram for otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >:
typedef TInputImage InputImageType
 
typedef TOutputImage OutputImageType
 
typedef TMask MaskImageType
 
typedef DisparityMapMedianFilter Self
 
typedef itk::ImageToImageFilter< InputImageType, OutputImageTypeSuperclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::PixelType InputPixelType
 
typedef OutputImageType::PixelType OutputPixelType
 
typedef MaskImageType::PixelType MaskImagePixelType
 
typedef MaskImageType::Pointer MaskImagePointerType
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef InputImageType::SizeType SizeType
 
typedef OutputImageType::IndexValueType IndexValueType
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
SizeType m_Radius
 
double m_IncoherenceThreshold
 
static Pointer New ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
void SetMaskInput (const TMask *inputmask)
 
const TMask * GetMaskInput ()
 
TMask * GetOutputMask ()
 
TOutputImage * GetOutputDisparityMap ()
 
TMask * GetOutputDisparityMask ()
 
virtual void SetRadius (SizeType _arg)
 
virtual SizeType GetRadius ()
 
void SetRadius (unsigned int radius)
 
virtual void SetIncoherenceThreshold (double _arg)
 
virtual double GetIncoherenceThreshold ()
 
 typedef (itk::Concept::SameDimension< InputImageDimension, OutputImageDimension >) SameDimensionCheck
 
 typedef (itk::Concept::Convertible< InputPixelType, OutputPixelType >) InputConvertibleToOutputCheck
 
 typedef (itk::Concept::LessThanComparable< InputPixelType >) InputLessThanComparableCheck
 
 DisparityMapMedianFilter ()
 
 ~DisparityMapMedianFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation (void) override
 
void GenerateData () override
 
 DisparityMapMedianFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TInputImage, class TOutputImage, class TMask>
class otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >

Applies a median filter to a monoband disparity map with an associated mask.

Computes an image where a given pixel is the median value of the the pixels in a neighborhood about the corresponding input pixel. Pixels taken into account for the median computation have a value different from zero in the associated mask.

A detection of incoherences between the input disparity map and the median is performed (a pixel corresponds to an incoherence if the absolute value of the difference between the pixel value in the disparity map and in the median image is higher than the incoherence threshold (whose default value is 1). The input disparity map and mask are updated: their value on incoherences becomes 0.

The median image is then computed again on incoherences using the updated disparity map and mask.

Inputs (with corresponding method):

A median filter is one of the family of nonlinear filters. It is used to smooth an image without being biased by outliers or shot noise.

This filter requires that the input pixel type provides an operator<() (LessThan Comparable).

See also
Image
Neighborhood
NeighborhoodOperator
NeighborhoodIterator

Definition at line 74 of file otbDisparityMapMedianFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage , class TOutputImage , class TMask >
typedef itk::SmartPointer<const Self> otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::ConstPointer

Convenient typedefs for simplifying declarations.

Definition at line 92 of file otbDisparityMapMedianFilter.h.

◆ IndexValueType

template<class TInputImage , class TOutputImage , class TMask >
typedef OutputImageType::IndexValueType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::IndexValueType

Convenient typedefs for simplifying declarations.

Definition at line 109 of file otbDisparityMapMedianFilter.h.

◆ InputImageRegionType

template<class TInputImage , class TOutputImage , class TMask >
typedef InputImageType::RegionType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputImageRegionType

Convenient typedefs for simplifying declarations.

Definition at line 106 of file otbDisparityMapMedianFilter.h.

◆ InputImageType

template<class TInputImage , class TOutputImage , class TMask >
typedef TInputImage otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputImageType

Convenient typedefs for simplifying declarations.

Definition at line 83 of file otbDisparityMapMedianFilter.h.

◆ InputPixelType

template<class TInputImage , class TOutputImage , class TMask >
typedef InputImageType::PixelType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputPixelType

Image typedef support.

Definition at line 98 of file otbDisparityMapMedianFilter.h.

◆ MaskImagePixelType

template<class TInputImage , class TOutputImage , class TMask >
typedef MaskImageType::PixelType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::MaskImagePixelType

Convenient typedefs for simplifying declarations.

Definition at line 103 of file otbDisparityMapMedianFilter.h.

◆ MaskImagePointerType

template<class TInputImage , class TOutputImage , class TMask >
typedef MaskImageType::Pointer otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::MaskImagePointerType

Convenient typedefs for simplifying declarations.

Definition at line 104 of file otbDisparityMapMedianFilter.h.

◆ MaskImageType

template<class TInputImage , class TOutputImage , class TMask >
typedef TMask otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::MaskImageType

Convenient typedefs for simplifying declarations.

Definition at line 85 of file otbDisparityMapMedianFilter.h.

◆ OutputImageRegionType

template<class TInputImage , class TOutputImage , class TMask >
typedef OutputImageType::RegionType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputImageRegionType

Convenient typedefs for simplifying declarations.

Definition at line 107 of file otbDisparityMapMedianFilter.h.

◆ OutputImageType

template<class TInputImage , class TOutputImage , class TMask >
typedef TOutputImage otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputImageType

Convenient typedefs for simplifying declarations.

Definition at line 84 of file otbDisparityMapMedianFilter.h.

◆ OutputPixelType

template<class TInputImage , class TOutputImage , class TMask >
typedef OutputImageType::PixelType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputPixelType

Convenient typedefs for simplifying declarations.

Definition at line 102 of file otbDisparityMapMedianFilter.h.

◆ Pointer

template<class TInputImage , class TOutputImage , class TMask >
typedef itk::SmartPointer<Self> otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::Pointer

Convenient typedefs for simplifying declarations.

Definition at line 91 of file otbDisparityMapMedianFilter.h.

◆ Self

template<class TInputImage , class TOutputImage , class TMask >
typedef DisparityMapMedianFilter otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::Self

Standard class typedefs.

Definition at line 89 of file otbDisparityMapMedianFilter.h.

◆ SizeType

template<class TInputImage , class TOutputImage , class TMask >
typedef InputImageType::SizeType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SizeType

Convenient typedefs for simplifying declarations.

Definition at line 108 of file otbDisparityMapMedianFilter.h.

◆ Superclass

template<class TInputImage , class TOutputImage , class TMask >
typedef itk::ImageToImageFilter<InputImageType, OutputImageType> otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::Superclass

Convenient typedefs for simplifying declarations.

Definition at line 90 of file otbDisparityMapMedianFilter.h.

Constructor & Destructor Documentation

◆ DisparityMapMedianFilter() [1/2]

template<class TInputImage , class TOutputImage , class TMask >
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::DisparityMapMedianFilter
protected

End concept checking

Definition at line 38 of file otbDisparityMapMedianFilter.hxx.

◆ ~DisparityMapMedianFilter()

template<class TInputImage , class TOutputImage , class TMask >
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::~DisparityMapMedianFilter ( )
inlineoverrideprotected

Convenient typedefs for simplifying declarations.

Definition at line 153 of file otbDisparityMapMedianFilter.h.

◆ DisparityMapMedianFilter() [2/2]

template<class TInputImage , class TOutputImage , class TMask >
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::DisparityMapMedianFilter ( const Self )
privatedelete

Convenient typedefs for simplifying declarations.

Member Function Documentation

◆ CreateAnother()

template<class TInputImage , class TOutputImage , class TMask >
virtual::itk::LightObject::Pointer otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::CreateAnother ( void  ) const

Convenient typedefs for simplifying declarations.

◆ GenerateData()

template<class TInputImage , class TOutputImage , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GenerateData
overrideprotected

apply median filter

Input iterators

Output iterators

Definition at line 192 of file otbDisparityMapMedianFilter.hxx.

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TOutputImage , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GenerateInputRequestedRegion
overrideprotected

MedianImageFilter needs a larger input requested region than the output requested region. As such, MedianImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See also
ImageToImageFilter::GenerateInputRequestedRegion()

Definition at line 126 of file otbDisparityMapMedianFilter.hxx.

◆ GenerateOutputInformation()

template<class TInputImage , class TOutputImage , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GenerateOutputInformation ( void  )
overrideprotected

Generate output information

Definition at line 100 of file otbDisparityMapMedianFilter.hxx.

◆ GetIncoherenceThreshold()

template<class TInputImage , class TOutputImage , class TMask >
virtual double otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetIncoherenceThreshold ( )
virtual

Convenient typedefs for simplifying declarations.

◆ GetMaskInput()

template<class TInputImage , class TOutputImage , class TMask >
const TMask * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetMaskInput

Get the input mask

Definition at line 58 of file otbDisparityMapMedianFilter.hxx.

◆ GetNameOfClass()

template<class TInputImage , class TOutputImage , class TMask >
virtual const char* otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetOutputDisparityMap()

template<class TInputImage , class TOutputImage , class TMask >
TOutputImage * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetOutputDisparityMap

Get the updated disparity map

Definition at line 79 of file otbDisparityMapMedianFilter.hxx.

◆ GetOutputDisparityMask()

template<class TInputImage , class TOutputImage , class TMask >
TMask * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetOutputDisparityMask

Get the updated disparity mask

Definition at line 89 of file otbDisparityMapMedianFilter.hxx.

◆ GetOutputMask()

template<class TInputImage , class TOutputImage , class TMask >
TMask * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetOutputMask

Get the output mask

Definition at line 68 of file otbDisparityMapMedianFilter.hxx.

◆ GetRadius()

template<class TInputImage , class TOutputImage , class TMask >
virtual SizeType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetRadius ( )
virtual

Convenient typedefs for simplifying declarations.

◆ New()

template<class TInputImage , class TOutputImage , class TMask >
static Pointer otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputImage , class TOutputImage , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::operator= ( const Self )
privatedelete

Convenient typedefs for simplifying declarations.

◆ PrintSelf()

template<class TInputImage , class TOutput , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutput, TMask >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Standard "PrintSelf" method

Definition at line 419 of file otbDisparityMapMedianFilter.hxx.

◆ SetIncoherenceThreshold()

template<class TInputImage , class TOutputImage , class TMask >
virtual void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SetIncoherenceThreshold ( double  _arg)
virtual

Set/Get the incoherence threshold

◆ SetMaskInput()

template<class TInputImage , class TOutputImage , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SetMaskInput ( const TMask *  inputmask)

Set input mask

Definition at line 50 of file otbDisparityMapMedianFilter.hxx.

◆ SetRadius() [1/2]

template<class TInputImage , class TOutputImage , class TMask >
virtual void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SetRadius ( SizeType  _arg)
virtual

Set/Get the radius of the neighborhood used to compute the median.

◆ SetRadius() [2/2]

template<class TInputImage , class TOutputImage , class TMask >
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SetRadius ( unsigned int  radius)
inline

Set unsigned int radius

Definition at line 132 of file otbDisparityMapMedianFilter.h.

◆ typedef() [1/3]

template<class TInputImage , class TOutputImage , class TMask >
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::typedef ( itk::Concept::Convertible< InputPixelType, OutputPixelType )

This class requires InputConvertibleToOutputCheck in the form of (itk::Concept::Convertible<InputPixelType, OutputPixelType>)

◆ typedef() [2/3]

template<class TInputImage , class TOutputImage , class TMask >
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::typedef ( itk::Concept::LessThanComparable< InputPixelType )

This class requires InputLessThanComparableCheck in the form of (itk::Concept::LessThanComparable<InputPixelType>)

◆ typedef() [3/3]

template<class TInputImage , class TOutputImage , class TMask >
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::typedef ( itk::Concept::SameDimension< InputImageDimension, OutputImageDimension )

Begin concept checking This class requires SameDimensionCheck in the form of (itk::Concept::SameDimension<InputImageDimension, OutputImageDimension>)

Member Data Documentation

◆ InputImageDimension

template<class TInputImage , class TOutputImage , class TMask >
const unsigned int otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputImageDimension = TInputImage::ImageDimension
static

Extract dimension from input and output image.

Definition at line 78 of file otbDisparityMapMedianFilter.h.

◆ m_IncoherenceThreshold

template<class TInputImage , class TOutputImage , class TMask >
double otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::m_IncoherenceThreshold
private

Threshold of incoherence between original and filtered disparity

Definition at line 180 of file otbDisparityMapMedianFilter.h.

◆ m_Radius

template<class TInputImage , class TOutputImage , class TMask >
SizeType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::m_Radius
private

Radius of median filter

Definition at line 177 of file otbDisparityMapMedianFilter.h.

◆ OutputImageDimension

template<class TInputImage , class TOutputImage , class TMask >
const unsigned int otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputImageDimension = TOutputImage::ImageDimension
static

Convenient typedefs for simplifying declarations.

Definition at line 79 of file otbDisparityMapMedianFilter.h.


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