18 #ifndef itkWatershedSegmentTreeGenerator_h
19 #define itkWatershedSegmentTreeGenerator_h
77 template <
typename TScalar>
119 if (st != this->GetInput(0))
121 m_HighestCalculatedFloodLevel = 0.0;
135 EquivalencyTableType *
150 GenerateData()
override;
156 itkSetMacro(Merge,
bool);
157 itkGetConstMacro(Merge,
bool);
166 SetFloodLevel(
double);
168 itkGetConstMacro(FloodLevel,
double);
173 itkSetMacro(HighestCalculatedFloodLevel,
double);
174 itkGetConstMacro(HighestCalculatedFloodLevel,
double);
182 itkSetMacro(ConsumeInput,
bool);
183 itkGetConstMacro(ConsumeInput,
bool);
194 PruneMergeSegments(SegmentTableTypePointer,
195 OneWayEquivalencyTableTypePointer,
202 using Superclass::MakeOutput;
211 PrintSelf(std::ostream & os,
Indent indent)
const override;
222 MergeEquivalencies();
226 GenerateOutputRequestedRegion(
DataObject * output)
override;
229 GenerateInputRequestedRegion()
override;
232 bool m_Merge{
false };
233 double m_FloodLevel{ 0.0 };
234 bool m_ConsumeInput{
false };
244 double m_HighestCalculatedFloodLevel{ 0.0 };
249 #ifndef ITK_MANUAL_INSTANTIATION
250 # include "itkWatershedSegmentTreeGenerator.hxx"