18 #ifndef itkMorphologicalWatershedFromMarkersImageFilter_h
19 #define itkMorphologicalWatershedFromMarkersImageFilter_h
81 template <
typename TInputImage,
typename TLabelImage>
109 static constexpr
unsigned int ImageDimension = TInputImage::ImageDimension;
122 this->SetNthInput(1, const_cast<TLabelImage *>(input));
126 const LabelImageType *
129 return itkDynamicCastInDebugMode<LabelImageType *>(const_cast<DataObject *>(this->
ProcessObject::GetInput(1)));
136 this->SetInput(input);
143 this->SetMarkerImage(input);
152 itkSetMacro(FullyConnected,
bool);
153 itkGetConstReferenceMacro(FullyConnected,
bool);
154 itkBooleanMacro(FullyConnected);
162 itkSetMacro(MarkWatershedLine,
bool);
163 itkGetConstReferenceMacro(MarkWatershedLine,
bool);
164 itkBooleanMacro(MarkWatershedLine);
171 PrintSelf(std::ostream & os,
Indent indent)
const override;
177 GenerateInputRequestedRegion()
override;
183 EnlargeOutputRequestedRegion(
DataObject * itkNotUsed(output))
override;
187 GenerateData()
override;
190 bool m_FullyConnected{
false };
192 bool m_MarkWatershedLine{
true };
196 #ifndef ITK_MANUAL_INSTANTIATION
197 # include "itkMorphologicalWatershedFromMarkersImageFilter.hxx"