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