21 #ifndef otbLabelImageRegionPruningFilter_h
22 #define otbLabelImageRegionPruningFilter_h
26 #include "itkImageToImageFilter.h"
27 #include "itkNumericTraits.h"
45 template <
class TInputLabelImage,
class TInputSpectralImage,
class TOutputLabelImage = TInputLabelImage,
class TOutputClusteredImage = TInputSpectralImage>
51 typedef itk::ImageToImageFilter<TInputLabelImage, TOutputLabelImage>
Superclass;
71 typedef typename InputImageType::PointType
PointType;
73 typedef typename InputImageType::SizeType
SizeType;
88 itkStaticConstMacro(ImageDimension,
unsigned int, InputLabelImageType::ImageDimension);
95 itkSetMacro(MinRegionSize,
RealType);
96 itkGetConstMacro(MinRegionSize,
RealType);
123 void EnlargeOutputRequestedRegion(itk::DataObject* output)
override;
125 void GenerateOutputInformation(
void)
override;
127 void GenerateData()
override;
136 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
139 RegionAdjacencyMapType LabelImageToRegionAdjacencyMap(
typename OutputLabelImageType::Pointer inputLabelImage);
143 void operator=(
const Self&) =
delete;
161 #ifndef OTB_MANUAL_INSTANTIATION