21 #ifndef otbAdhesionCorrectionFilter_h
22 #define otbAdhesionCorrectionFilter_h
24 #include "itkImageToImageFilter.h"
26 #include "itkConstNeighborhoodIterator.h"
27 #include "itkImageRegionConstIterator.h"
28 #include "itkImageLinearConstIteratorWithIndex.h"
69 template <
class TImage,
class TMask>
75 typedef itk::ImageToImageFilter<TImage, TImage>
Superclass;
105 void SetMedianDisparityInput(
const TImage* medianmap);
106 void SetMedianMaskInput(
const TMask* medianmask);
107 void SetEdgesDisparityInput(
const TImage* cannymedianmap);
108 void SetSubPixelMaskInput(
const TMask* subpixelmask);
112 const TImage* GetMedianDisparityInput();
113 const TMask* GetMedianMaskInput();
114 const TImage* GetEdgesDisparityInput();
115 const TMask* GetSubPixelMaskInput();
119 TMask* GetOutputMask();
122 TImage* GetOutputRiskEdges();
132 m_Radius.Fill(radius);
136 itkSetMacro(Tolerance,
double);
137 itkGetMacro(Tolerance,
double);
141 itkSetMacro(DiscontinuityThreshold,
double);
142 itkGetMacro(DiscontinuityThreshold,
double);
146 itkSetMacro(DiscontinuityHighThreshold,
double);
147 itkGetMacro(DiscontinuityHighThreshold,
double);
151 itkSetMacro(MaxEdgeGap,
double);
152 itkGetMacro(MaxEdgeGap,
double);
156 itkSetMacro(EdgeThreshold,
double);
157 itkGetMacro(EdgeThreshold,
double);
168 void GenerateData()
override;
171 void GenerateInputRequestedRegion(
void)
override;
174 void GenerateOutputInformation(
void)
override;
196 #ifndef OTB_MANUAL_INSTANTIATION
This filter eliminates pixels risking adhesion from the input disparity map. To do so it applies the ...
TImage::SpacingType SpacingType
itk::SmartPointer< const Self > ConstPointer
~AdhesionCorrectionFilter() override
otb::Image< double, 2 > AuxImageType
void SetRadius(unsigned int radius)
TImage::SizeType SizeType
void operator=(const Self &)=delete
itk::ConstNeighborhoodIterator< TImage > NeighborhoodIteratorType
TImage::PixelType PixelType
AdhesionCorrectionFilter Self
TImage::PointType PointType
double m_DiscontinuityThreshold
TImage::Pointer ImagePointerType
TImage::OffsetType OffsetType
itk::SmartPointer< Self > Pointer
itk::ImageToImageFilter< TImage, TImage > Superclass
TImage::IndexType IndexType
AuxImageType::Pointer AuxImagePointerType
double m_DiscontinuityHighThreshold
TMask::Pointer MaskImagePointerType
TImage::RegionType ImageRegionType
std::vector< int > IntVectorType
TMask::PixelType MaskImagePixelType
AdhesionCorrectionFilter(const Self &)=delete
Creation of an "otb" image which contains metadata.
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.