18 #ifndef itkMorphologicalWatershedFromMarkersImageFilter_h
19 #define itkMorphologicalWatershedFromMarkersImageFilter_h
80 template<
typename TInputImage,
typename TLabelImage >
108 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
120 this->SetNthInput( 1, const_cast< TLabelImage * >( input ) );
126 return itkDynamicCastInDebugMode< LabelImageType * >
133 this->SetInput(input);
139 this->SetMarkerImage(input);
148 itkSetMacro(FullyConnected,
bool);
149 itkGetConstReferenceMacro(FullyConnected,
bool);
150 itkBooleanMacro(FullyConnected);
158 itkSetMacro(MarkWatershedLine,
bool);
159 itkGetConstReferenceMacro(MarkWatershedLine,
bool);
160 itkBooleanMacro(MarkWatershedLine);
166 void PrintSelf(std::ostream & os,
Indent indent)
const override;
171 void GenerateInputRequestedRegion()
override;
176 void EnlargeOutputRequestedRegion(
DataObject *itkNotUsed(output) )
override;
179 void GenerateData()
override;
182 bool m_FullyConnected{
false };
184 bool m_MarkWatershedLine{
true };
188 #ifndef ITK_MANUAL_INSTANTIATION
189 #include "itkMorphologicalWatershedFromMarkersImageFilter.hxx"
Light weight base class for most itk classes.
void SetInput1(const TInputImage *input)
typename LabelImageType::Pointer LabelImagePointer
TLabelImage LabelImageType
typename InputImageType::RegionType InputImageRegionType
typename LabelImageType::IndexType IndexType
typename InputImageType::ConstPointer InputImageConstPointer
ImageBaseType::IndexType IndexType
Morphological watershed transform from markers.
void SetInput2(const TLabelImage *input)
typename LabelImageType::ConstPointer LabelImageConstPointer
typename InputImageType::Pointer InputImagePointer
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
typename InputImageType::PixelType InputImagePixelType
Base class for filters that take an image as input and produce an image as output.
void SetMarkerImage(const TLabelImage *input)
TInputImage InputImageType
Control indentation during Print() invocation.
typename LabelImageType::RegionType LabelImageRegionType
const LabelImageType * GetMarkerImage() const
ImageBaseType::RegionType RegionType
Base class for all data objects in ITK.
typename LabelImageType::PixelType LabelImagePixelType