OTB
9.0.0
Orfeo Toolbox
|
#include <otbDisparityMapMedianFilter.h>
typedef TInputImage | InputImageType |
typedef TOutputImage | OutputImageType |
typedef TMask | MaskImageType |
typedef DisparityMapMedianFilter | Self |
typedef itk::ImageToImageFilter< InputImageType, OutputImageType > | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
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 |
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).
Definition at line 74 of file otbDisparityMapMedianFilter.h.
typedef itk::SmartPointer<const Self> otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::ConstPointer |
Convenient typedefs for simplifying declarations.
Definition at line 92 of file otbDisparityMapMedianFilter.h.
typedef OutputImageType::IndexValueType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::IndexValueType |
Convenient typedefs for simplifying declarations.
Definition at line 109 of file otbDisparityMapMedianFilter.h.
typedef InputImageType::RegionType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputImageRegionType |
Convenient typedefs for simplifying declarations.
Definition at line 106 of file otbDisparityMapMedianFilter.h.
typedef TInputImage otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputImageType |
Convenient typedefs for simplifying declarations.
Definition at line 83 of file otbDisparityMapMedianFilter.h.
typedef InputImageType::PixelType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::InputPixelType |
Image typedef support.
Definition at line 98 of file otbDisparityMapMedianFilter.h.
typedef MaskImageType::PixelType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::MaskImagePixelType |
Convenient typedefs for simplifying declarations.
Definition at line 103 of file otbDisparityMapMedianFilter.h.
typedef MaskImageType::Pointer otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::MaskImagePointerType |
Convenient typedefs for simplifying declarations.
Definition at line 104 of file otbDisparityMapMedianFilter.h.
typedef TMask otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::MaskImageType |
Convenient typedefs for simplifying declarations.
Definition at line 85 of file otbDisparityMapMedianFilter.h.
typedef OutputImageType::RegionType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputImageRegionType |
Convenient typedefs for simplifying declarations.
Definition at line 107 of file otbDisparityMapMedianFilter.h.
typedef TOutputImage otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputImageType |
Convenient typedefs for simplifying declarations.
Definition at line 84 of file otbDisparityMapMedianFilter.h.
typedef OutputImageType::PixelType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::OutputPixelType |
Convenient typedefs for simplifying declarations.
Definition at line 102 of file otbDisparityMapMedianFilter.h.
typedef itk::SmartPointer<Self> otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::Pointer |
Convenient typedefs for simplifying declarations.
Definition at line 91 of file otbDisparityMapMedianFilter.h.
typedef DisparityMapMedianFilter otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::Self |
Standard class typedefs.
Definition at line 89 of file otbDisparityMapMedianFilter.h.
typedef InputImageType::SizeType otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SizeType |
Convenient typedefs for simplifying declarations.
Definition at line 108 of file otbDisparityMapMedianFilter.h.
typedef itk::ImageToImageFilter<InputImageType, OutputImageType> otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::Superclass |
Convenient typedefs for simplifying declarations.
Definition at line 90 of file otbDisparityMapMedianFilter.h.
|
protected |
End concept checking
Definition at line 38 of file otbDisparityMapMedianFilter.hxx.
|
inlineoverrideprotected |
Convenient typedefs for simplifying declarations.
Definition at line 153 of file otbDisparityMapMedianFilter.h.
|
privatedelete |
Convenient typedefs for simplifying declarations.
virtual::itk::LightObject::Pointer otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::CreateAnother | ( | void | ) | const |
Convenient typedefs for simplifying declarations.
|
overrideprotected |
apply median filter
Input iterators
Output iterators
Definition at line 192 of file otbDisparityMapMedianFilter.hxx.
|
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.
Definition at line 126 of file otbDisparityMapMedianFilter.hxx.
|
overrideprotected |
Generate output information
Definition at line 100 of file otbDisparityMapMedianFilter.hxx.
|
virtual |
Convenient typedefs for simplifying declarations.
const TMask * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetMaskInput |
Get the input mask
Definition at line 58 of file otbDisparityMapMedianFilter.hxx.
|
virtual |
Run-time type information (and related methods).
TOutputImage * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetOutputDisparityMap |
Get the updated disparity map
Definition at line 79 of file otbDisparityMapMedianFilter.hxx.
TMask * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetOutputDisparityMask |
Get the updated disparity mask
Definition at line 89 of file otbDisparityMapMedianFilter.hxx.
TMask * otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::GetOutputMask |
Get the output mask
Definition at line 68 of file otbDisparityMapMedianFilter.hxx.
|
virtual |
Convenient typedefs for simplifying declarations.
|
static |
Method for creation through the object factory.
|
privatedelete |
Convenient typedefs for simplifying declarations.
|
overrideprotected |
Standard "PrintSelf" method
Definition at line 419 of file otbDisparityMapMedianFilter.hxx.
|
virtual |
Set/Get the incoherence threshold
void otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::SetMaskInput | ( | const TMask * | inputmask | ) |
Set input mask
Definition at line 50 of file otbDisparityMapMedianFilter.hxx.
|
virtual |
Set/Get the radius of the neighborhood used to compute the median.
|
inline |
Set unsigned int radius
Definition at line 132 of file otbDisparityMapMedianFilter.h.
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::typedef | ( | itk::Concept::Convertible< InputPixelType, OutputPixelType > | ) |
This class requires InputConvertibleToOutputCheck in the form of (itk::Concept::Convertible<InputPixelType, OutputPixelType>)
otb::DisparityMapMedianFilter< TInputImage, TOutputImage, TMask >::typedef | ( | itk::Concept::LessThanComparable< InputPixelType > | ) |
This class requires InputLessThanComparableCheck in the form of (itk::Concept::LessThanComparable<InputPixelType>)
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>)
|
static |
Extract dimension from input and output image.
Definition at line 78 of file otbDisparityMapMedianFilter.h.
|
private |
Threshold of incoherence between original and filtered disparity
Definition at line 180 of file otbDisparityMapMedianFilter.h.
|
private |
Radius of median filter
Definition at line 177 of file otbDisparityMapMedianFilter.h.
|
static |
Convenient typedefs for simplifying declarations.
Definition at line 79 of file otbDisparityMapMedianFilter.h.