18 #ifndef itkWatershedRelabeler_h
19 #define itkWatershedRelabeler_h
63 template<
typename TScalar,
unsigned int TImageDimension >
80 static constexpr
unsigned int ImageDimension = TImageDimension;
91 using Superclass::MakeOutput;
102 return itkDynamicCastInDebugMode< ImageType * >
114 return itkDynamicCastInDebugMode< ImageType * >
126 return itkDynamicCastInDebugMode< SegmentTreeType * >
131 void GenerateData()
override;
135 itkSetClampMacro(FloodLevel,
double, 0.0, 1.0);
136 itkGetConstMacro(FloodLevel,
double);
140 void GraftOutput(ImageType *graft);
142 void GraftNthOutput(
unsigned int idx, ImageType *graft);
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
151 double m_FloodLevel{0.0};
152 void GenerateOutputRequestedRegion(
DataObject *output)
override;
154 void GenerateInputRequestedRegion()
override;
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkWatershedRelabeler.hxx"
ImageType * GetInputImage()
Light weight base class for most itk classes.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
void operator=(const Self &)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
void SetInputSegmentTree(SegmentTreeType *et)
void SetOutputImage(ImageType *img)
class ITK_FORWARD_EXPORT ProcessObject
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
void SetInputImage(ImageType *img)
SegmentTreeType * GetInputSegmentTree()
Control indentation during Print() invocation.
ImageType * GetOutputImage()
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
virtual void SetNthOutput(DataObjectPointerArraySizeType num, DataObject *output)
SmartPointer< Self > Pointer
Base class for all data objects in ITK.
Templated n-dimensional image class.
DataObject * GetOutput(const DataObjectIdentifierType &key)