18 #ifndef itkMorphologicalWatershedFromMarkersImageFilter_h
19 #define itkMorphologicalWatershedFromMarkersImageFilter_h
80 template <
typename TInputImage,
typename TLabelImage>
108 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
121 this->SetNthInput(1, const_cast<TLabelImage *>(input));
125 const LabelImageType *
128 return itkDynamicCastInDebugMode<LabelImageType *>(const_cast<DataObject *>(this->
ProcessObject::GetInput(1)));
135 this->SetInput(input);
142 this->SetMarkerImage(input);
151 itkSetMacro(FullyConnected,
bool);
152 itkGetConstReferenceMacro(FullyConnected,
bool);
153 itkBooleanMacro(FullyConnected);
161 itkSetMacro(MarkWatershedLine,
bool);
162 itkGetConstReferenceMacro(MarkWatershedLine,
bool);
163 itkBooleanMacro(MarkWatershedLine);
170 PrintSelf(std::ostream & os,
Indent indent)
const override;
176 GenerateInputRequestedRegion()
override;
182 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
186 GenerateData()
override;
189 bool m_FullyConnected{
false };
191 bool m_MarkWatershedLine{
true };
195 #ifndef ITK_MANUAL_INSTANTIATION
196 # include "itkMorphologicalWatershedFromMarkersImageFilter.hxx"