OTB  7.3.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | 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 int GetMaxHDisp ()
 
virtual int GetMaxVDisp ()
 
virtual int GetMinVDisp ()
 
virtual const char * GetNameOfClass () const
 
virtual double GetTolerance ()
 
void SetDirectHorizontalDisparityMapInput (const TDisparityImage *hmap)
 
void SetDirectVerticalDisparityMapInput (const TDisparityImage *vmap)
 
virtual void SetMaxHDisp (int _arg)
 
virtual void SetMaxVDisp (int _arg)
 
virtual void SetMinVDisp (int _arg)
 
void SetReverseHorizontalDisparityMapInput (const TDisparityImage *hmap)
 
void SetReverseVerticalDisparityMapInput (const TDisparityImage *vmap)
 
virtual void SetTolerance (double _arg)
 
const TDisparityImage * GetDirectHorizontalDisparityMapInput () const
 
const TDisparityImage * GetDirectVerticalDisparityMapInput () const
 
const TDisparityImage * GetReverseHorizontalDisparityMapInput () const
 
const TDisparityImage * GetReverseVerticalDisparityMapInput () const
 
virtual void SetMinHDisp (int _arg)
 
virtual int GetMinHDisp ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 BijectionCoherencyFilter ()
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
void ThreadedGenerateData (const OutputRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
 ~BijectionCoherencyFilter () override
 

Private Member Functions

 BijectionCoherencyFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

int m_MaxHDisp
 
int m_MaxVDisp
 
int m_MinHDisp
 
int m_MinVDisp
 
double m_Tolerance
 

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

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 ( void  )
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 ( void  )
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 ( ) const

Get the inputs

Definition at line 78 of file otbBijectionCoherencyFilter.hxx.

◆ GetDirectVerticalDisparityMapInput()

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

Get the inputs

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

◆ GetMaxVDisp()

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

◆ GetMinHDisp()

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

Set/Get macro for exploration area

◆ GetMinVDisp()

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

◆ 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 ( ) const

Get the inputs

Definition at line 98 of file otbBijectionCoherencyFilter.hxx.

◆ GetReverseVerticalDisparityMapInput()

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

Get the inputs

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

◆ 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

◆ SetMaxVDisp()

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

◆ 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

◆ 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: