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);
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);
165 #ifndef OTB_MANUAL_INSTANTIATION
TInputSpectralImage::PixelType SpectralPixelType
std::vector< LabelType > m_CanonicalLabels
std::vector< SpectralPixelType > m_Modes
OutputImageType::RegionType OutputRegionType
TOutputLabelImage OutputLabelImageType
LabelImageRegionMergingFilter Self
InputImageType::Pointer InputImagePointerType
InputImageType::RegionType RegionType
std::vector< AdjacentLabelsContainerType > RegionAdjacencyMapType
InputImageType::SizeType InputSizeType
OutputImageType::PixelType OutputPixelType
unsigned int m_NumberOfComponentsPerPixel
std::vector< unsigned int > m_PointCounts
OutputImageType::Pointer OutputImagePointerType
LabelImageRegionMergingFilter(const Self &)=delete
itk::ImageToImageFilter< TInputLabelImage, TOutputLabelImage > Superclass
InputImageType::IndexValueType InputIndexValueType
TInputLabelImage InputImageType
OutputLabelImageType::PixelType OutputLabelType
TOutputLabelImage OutputImageType
itk::SmartPointer< Self > Pointer
InputImageType::PixelType InputPixelType
TOutputClusteredImage OutputClusteredImageType
std::set< LabelType > AdjacentLabelsContainerType
InputImageType::SizeType SizeType
InputImageType::IndexType InputIndexType
itk::SmartPointer< const Self > ConstPointer
RealType m_RangeBandwidth
void operator=(const Self &)=delete
InputImageType::PointType PointType
TInputLabelImage InputLabelImageType
TInputSpectralImage InputSpectralImageType
InputLabelImageType::PixelType InputLabelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.