18 #ifndef itkLabelSetMorphBaseImageFilter_h
19 #define itkLabelSetMorphBaseImageFilter_h
26 #if ITK_VERSION_MAJOR < 4
45 template<
typename TInputImage,
bool doDilate,
46 typename TOutputImage = TInputImage >
99 itkSetMacro(UseImageSpacing,
bool);
100 itkGetConstReferenceMacro(UseImageSpacing,
bool);
101 itkBooleanMacro(UseImageSpacing);
105 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
106 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
107 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
113 void writeDist(std::string fname);
120 OutputImageRegionType & splitRegion)
override;
122 void DynamicThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread)
override;
124 void GenerateData(
void)
override;
127 void EnlargeOutputRequestedRegion(
DataObject *output)
override;
130 void PrintSelf(std::ostream & os,
Indent indent)
const override;
149 #ifndef ITK_MANUAL_INSTANTIATION
150 #include "itkLabelSetMorphBaseImageFilter.hxx"
typename OutputImageType::IndexValueType OutputIndexValueType
typename itk::Image< RealType, TInputImage::ImageDimension > DistanceImageType
Define numeric traits for std::vector.
typename NumericTraits< PixelType >::FloatType RealType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename TInputImage::SizeType InputSizeType
TInputImage InputImageType
typename TOutputImage::SizeType OutputSizeType
Base class for binary morphological erosion of label images.
~LabelSetMorphBaseImageFilter() override
typename InputImageType::Pointer InputImagePointer
typename NumericTraits< PixelType >::ScalarRealType ScalarRealType
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
signed long IndexValueType
DistanceImageType::Pointer m_DistanceImage
unsigned int ThreadIdType
typename TOutputImage::PixelType OutputPixelType
typename OutputImageType::IndexType OutputIndexType
typename TInputImage::PixelType PixelType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
typename itk::FixedArray< ScalarRealType, TInputImage::ImageDimension > RadiusType
ImageBaseType::RegionType RegionType
typename InputImageType::ConstPointer InputImageConstPointer
Base class for all data objects in ITK.
Templated n-dimensional image class.