21 #ifndef otbDisparityMapMedianFilter_h
22 #define otbDisparityMapMedianFilter_h
24 #ifdef ITK_USE_CONSOLIDATED_MORPHOLOGY
25 #include "itkOptMedianImageFilter.h"
28 #include "itkImageToImageFilter.h"
73 template <
class TInputImage,
class TOutputImage,
class TMask>
78 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
79 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
90 typedef itk::ImageToImageFilter<InputImageType, OutputImageType>
Superclass;
108 typedef typename InputImageType::SizeType
SizeType;
112 void SetMaskInput(
const TMask* inputmask);
115 const TMask* GetMaskInput();
118 TMask* GetOutputMask();
121 TOutputImage* GetOutputDisparityMap();
124 TMask* GetOutputDisparityMask();
134 m_Radius.Fill(radius);
138 itkSetMacro(IncoherenceThreshold,
double);
139 itkGetMacro(IncoherenceThreshold,
double);
142 #ifdef ITK_USE_CONCEPT_CHECKING
144 itkConceptMacro(SameDimensionCheck, (itk::Concept::SameDimension<InputImageDimension, OutputImageDimension>));
145 itkConceptMacro(InputConvertibleToOutputCheck, (itk::Concept::Convertible<InputPixelType, OutputPixelType>));
146 itkConceptMacro(InputLessThanComparableCheck, (itk::Concept::LessThanComparable<InputPixelType>));
156 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
164 void GenerateInputRequestedRegion()
override;
167 void GenerateOutputInformation(
void)
override;
170 void GenerateData()
override;
174 void operator=(
const Self&) =
delete;
185 #ifndef OTB_MANUAL_INSTANTIATION