21 #ifndef otbBijectionCoherencyFilter_h
22 #define otbBijectionCoherencyFilter_h
24 #include "itkImageToImageFilter.h"
48 template <
class TDisparityImage,
class TOutputImage = otb::Image<
unsigned char>>
54 typedef itk::ImageToImageFilter<TDisparityImage, TOutputImage>
Superclass;
70 typedef typename DispMapType::SizeType
SizeType;
74 void SetDirectHorizontalDisparityMapInput(
const TDisparityImage* hmap);
77 void SetDirectVerticalDisparityMapInput(
const TDisparityImage* vmap);
80 void SetReverseHorizontalDisparityMapInput(
const TDisparityImage* hmap);
83 void SetReverseVerticalDisparityMapInput(
const TDisparityImage* vmap);
86 const TDisparityImage* GetDirectHorizontalDisparityMapInput()
const;
87 const TDisparityImage* GetDirectVerticalDisparityMapInput()
const;
88 const TDisparityImage* GetReverseHorizontalDisparityMapInput()
const;
89 const TDisparityImage* GetReverseVerticalDisparityMapInput()
const;
93 itkSetMacro(Tolerance,
double);
96 itkGetMacro(Tolerance,
double);
99 itkSetMacro(MinHDisp,
int);
100 itkGetMacro(MinHDisp,
int);
103 itkSetMacro(MaxHDisp,
int);
104 itkGetMacro(MaxHDisp,
int);
106 itkSetMacro(MinVDisp,
int);
107 itkGetMacro(MinVDisp,
int);
109 itkSetMacro(MaxVDisp,
int);
110 itkGetMacro(MaxVDisp,
int);
120 void GenerateOutputInformation()
override;
123 void GenerateInputRequestedRegion()
override;
126 void ThreadedGenerateData(
const OutputRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
130 void operator=(
const Self&) =
delete;
150 #ifndef OTB_MANUAL_INSTANTIATION