21 #ifndef otbLabelImageRegionMergingFilter_h
22 #define otbLabelImageRegionMergingFilter_h
26 #include "itkImageToImageFilter.h"
44 template <
class TInputLabelImage,
class TInputSpectralImage,
class TOutputLabelImage = TInputLabelImage,
class TOutputClusteredImage = TInputSpectralImage>
50 typedef itk::ImageToImageFilter<TInputLabelImage, TOutputLabelImage>
Superclass;
70 typedef typename InputImageType::PointType
PointType;
72 typedef typename InputImageType::SizeType
SizeType;
87 itkStaticConstMacro(ImageDimension,
unsigned int, InputLabelImageType::ImageDimension);
96 itkSetMacro(RangeBandwidth,
RealType);
97 itkGetMacro(RangeBandwidth,
RealType);
125 void EnlargeOutputRequestedRegion(itk::DataObject* output)
override;
127 void GenerateOutputInformation(
void)
override;
129 void GenerateData()
override;
138 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
141 RegionAdjacencyMapType LabelImageToRegionAdjacencyMap(
typename OutputLabelImageType::Pointer inputLabelImage);
145 void operator=(
const Self&) =
delete;
165 #ifndef OTB_MANUAL_INSTANTIATION