OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage > Class Template Reference

#include <otbBijectionCoherencyFilter.h>

+ Inheritance diagram for otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >:
+ Collaboration diagram for otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef TDisparityImage DispMapType
 
typedef DispMapType::IndexType IndexType
 
typedef DispMapType::RegionType InputRegionType
 
typedef TOutputImage MaskType
 
typedef MaskType::RegionType OutputRegionType
 
typedef itk::SmartPointer< SelfPointer
 
typedef BijectionCoherencyFilter Self
 
typedef DispMapType::SizeType SizeType
 
typedef itk::ImageToImageFilter< TDisparityImage, TOutputImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
void SetDirectHorizontalDisparityMapInput (const TDisparityImage *hmap)
 
void SetDirectVerticalDisparityMapInput (const TDisparityImage *vmap)
 
void SetReverseHorizontalDisparityMapInput (const TDisparityImage *hmap)
 
void SetReverseVerticalDisparityMapInput (const TDisparityImage *vmap)
 

Static Public Member Functions

static Pointer New ()
 
double m_Tolerance
 
int m_MinHDisp
 
int m_MaxHDisp
 
int m_MinVDisp
 
int m_MaxVDisp
 
const TDisparityImage * GetDirectHorizontalDisparityMapInput () const
 
const TDisparityImage * GetDirectVerticalDisparityMapInput () const
 
const TDisparityImage * GetReverseHorizontalDisparityMapInput () const
 
const TDisparityImage * GetReverseVerticalDisparityMapInput () const
 
virtual void SetTolerance (double _arg)
 
virtual double GetTolerance ()
 
virtual void SetMinHDisp (int _arg)
 
virtual int GetMinHDisp ()
 
virtual void SetMaxHDisp (int _arg)
 
virtual int GetMaxHDisp ()
 
virtual void SetMinVDisp (int _arg)
 
virtual int GetMinVDisp ()
 
virtual void SetMaxVDisp (int _arg)
 
virtual int GetMaxVDisp ()
 
 BijectionCoherencyFilter ()
 
 ~BijectionCoherencyFilter () override
 
void GenerateOutputInformation () override
 
void GenerateInputRequestedRegion () override
 
void ThreadedGenerateData (const OutputRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
 BijectionCoherencyFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TDisparityImage, class TOutputImage = otb::Image<unsigned char>>
class otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >

Left-right coherency filter for disparity maps.

This filter checks that left-to-right and right-to-left disparities (computed for a given stereo pair) are compatible, within a given tolerance radius. Disparities are expected to be given in index coordinates between a pair of epipolar images of equal size. 1D or 2D disparities may be supplied. Left-to-right disparities will be referred as direct, right-to-left as reverse. The output is a mask for coherent direct disparities.

Definition at line 49 of file otbBijectionCoherencyFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef itk::SmartPointer<const Self> otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::ConstPointer

Definition at line 56 of file otbBijectionCoherencyFilter.h.

◆ DispMapType

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef TDisparityImage otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::DispMapType

Useful typedefs

Definition at line 62 of file otbBijectionCoherencyFilter.h.

◆ IndexType

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef DispMapType::IndexType otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::IndexType

Definition at line 71 of file otbBijectionCoherencyFilter.h.

◆ InputRegionType

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef DispMapType::RegionType otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::InputRegionType

Definition at line 69 of file otbBijectionCoherencyFilter.h.

◆ MaskType

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef TOutputImage otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::MaskType

Definition at line 66 of file otbBijectionCoherencyFilter.h.

◆ OutputRegionType

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef MaskType::RegionType otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::OutputRegionType

Definition at line 68 of file otbBijectionCoherencyFilter.h.

◆ Pointer

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef itk::SmartPointer<Self> otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::Pointer

Definition at line 55 of file otbBijectionCoherencyFilter.h.

◆ Self

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef BijectionCoherencyFilter otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::Self

Standard class typedef

Definition at line 53 of file otbBijectionCoherencyFilter.h.

◆ SizeType

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef DispMapType::SizeType otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SizeType

Definition at line 70 of file otbBijectionCoherencyFilter.h.

◆ Superclass

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
typedef itk::ImageToImageFilter<TDisparityImage, TOutputImage> otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::Superclass

Definition at line 54 of file otbBijectionCoherencyFilter.h.

Constructor & Destructor Documentation

◆ BijectionCoherencyFilter() [1/2]

template<class TDisparityImage , class TOutputImage >
otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::BijectionCoherencyFilter
protected

Constructor

Definition at line 33 of file otbBijectionCoherencyFilter.hxx.

◆ ~BijectionCoherencyFilter()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::~BijectionCoherencyFilter ( )
inlineoverrideprotected

Destructor

Definition at line 117 of file otbBijectionCoherencyFilter.h.

◆ BijectionCoherencyFilter() [2/2]

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::BijectionCoherencyFilter ( const Self )
privatedelete

Tolerance radius (in pixels)

Member Function Documentation

◆ CreateAnother()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual::itk::LightObject::Pointer otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::CreateAnother ( void  ) const

◆ GenerateInputRequestedRegion()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GenerateInputRequestedRegion
overrideprotected

Generate input requested region

Definition at line 160 of file otbBijectionCoherencyFilter.hxx.

◆ GenerateOutputInformation()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GenerateOutputInformation
overrideprotected

Generate output information

Definition at line 118 of file otbBijectionCoherencyFilter.hxx.

◆ GetDirectHorizontalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
const TDisparityImage * otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetDirectHorizontalDisparityMapInput

Get the inputs

Definition at line 78 of file otbBijectionCoherencyFilter.hxx.

◆ GetDirectVerticalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
const TDisparityImage * otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetDirectVerticalDisparityMapInput

Tolerance radius (in pixels)

Definition at line 88 of file otbBijectionCoherencyFilter.hxx.

◆ GetMaxHDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetMaxHDisp ( )
virtual

Tolerance radius (in pixels)

◆ GetMaxVDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetMaxVDisp ( )
virtual

Tolerance radius (in pixels)

◆ GetMinHDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetMinHDisp ( )
virtual

Tolerance radius (in pixels)

◆ GetMinVDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetMinVDisp ( )
virtual

Tolerance radius (in pixels)

◆ GetNameOfClass()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual const char* otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ GetReverseHorizontalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
const TDisparityImage * otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetReverseHorizontalDisparityMapInput

Tolerance radius (in pixels)

Definition at line 98 of file otbBijectionCoherencyFilter.hxx.

◆ GetReverseVerticalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
const TDisparityImage * otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetReverseVerticalDisparityMapInput

Tolerance radius (in pixels)

Definition at line 108 of file otbBijectionCoherencyFilter.hxx.

◆ GetTolerance()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual double otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::GetTolerance ( )
virtual

Get the tolerance radius

◆ New()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
static Pointer otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::operator= ( const Self )
privatedelete

Tolerance radius (in pixels)

◆ SetDirectHorizontalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetDirectHorizontalDisparityMapInput ( const TDisparityImage *  hmap)

Set the direct horizontal disparity map

Definition at line 50 of file otbBijectionCoherencyFilter.hxx.

◆ SetDirectVerticalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetDirectVerticalDisparityMapInput ( const TDisparityImage *  vmap)

Set the direct vertical disparity map

Definition at line 57 of file otbBijectionCoherencyFilter.hxx.

◆ SetMaxHDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetMaxHDisp ( int  _arg)
virtual

Tolerance radius (in pixels)

◆ SetMaxVDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetMaxVDisp ( int  _arg)
virtual

Tolerance radius (in pixels)

◆ SetMinHDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetMinHDisp ( int  _arg)
virtual

Set/Get macro for exploration area

◆ SetMinVDisp()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetMinVDisp ( int  _arg)
virtual

Tolerance radius (in pixels)

◆ SetReverseHorizontalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetReverseHorizontalDisparityMapInput ( const TDisparityImage *  hmap)

Set the reverse horizontal disparity map

Definition at line 64 of file otbBijectionCoherencyFilter.hxx.

◆ SetReverseVerticalDisparityMapInput()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetReverseVerticalDisparityMapInput ( const TDisparityImage *  vmap)

Set the reverse vertical disparity map

Definition at line 71 of file otbBijectionCoherencyFilter.hxx.

◆ SetTolerance()

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
virtual void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::SetTolerance ( double  _arg)
virtual

Set the tolerance radius

◆ ThreadedGenerateData()

template<class TDisparityImage , class TOutputImage >
void otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::ThreadedGenerateData ( const OutputRegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
overrideprotected

Threaded generate data

Definition at line 200 of file otbBijectionCoherencyFilter.hxx.

Member Data Documentation

◆ m_MaxHDisp

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::m_MaxHDisp
private

Maximum horizontal input disparity

Definition at line 139 of file otbBijectionCoherencyFilter.h.

◆ m_MaxVDisp

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::m_MaxVDisp
private

Maximum vertical input disparity

Definition at line 145 of file otbBijectionCoherencyFilter.h.

◆ m_MinHDisp

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::m_MinHDisp
private

Minimum horizontal input disparity

Definition at line 136 of file otbBijectionCoherencyFilter.h.

◆ m_MinVDisp

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
int otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::m_MinVDisp
private

Minimum vertical input disparity

Definition at line 142 of file otbBijectionCoherencyFilter.h.

◆ m_Tolerance

template<class TDisparityImage , class TOutputImage = otb::Image<unsigned char>>
double otb::BijectionCoherencyFilter< TDisparityImage, TOutputImage >::m_Tolerance
private

Tolerance radius (in pixels)

Definition at line 133 of file otbBijectionCoherencyFilter.h.


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