18 #ifndef itkWatershedSegmentTreeGenerator_h
19 #define itkWatershedSegmentTreeGenerator_h
77 template <
typename TScalar>
118 if (st != this->GetInput(0))
120 m_HighestCalculatedFloodLevel = 0.0;
134 EquivalencyTableType *
149 GenerateData()
override;
155 itkSetMacro(Merge,
bool);
156 itkGetConstMacro(Merge,
bool);
165 SetFloodLevel(
double);
167 itkGetConstMacro(FloodLevel,
double);
172 itkSetMacro(HighestCalculatedFloodLevel,
double);
173 itkGetConstMacro(HighestCalculatedFloodLevel,
double);
181 itkSetMacro(ConsumeInput,
bool);
182 itkGetConstMacro(ConsumeInput,
bool);
193 PruneMergeSegments(SegmentTableTypePointer,
194 OneWayEquivalencyTableTypePointer,
201 using Superclass::MakeOutput;
213 PrintSelf(std::ostream & os,
Indent indent)
const override;
217 void CompileMergeList(SegmentTableTypePointer, SegmentTreeTypePointer);
221 void ExtractMergeHierarchy(SegmentTableTypePointer, SegmentTreeTypePointer);
224 MergeEquivalencies();
228 GenerateOutputRequestedRegion(
DataObject * output)
override;
231 GenerateInputRequestedRegion()
override;
234 bool m_Merge{
false };
235 double m_FloodLevel{ 0.0 };
236 bool m_ConsumeInput{
false };
246 double m_HighestCalculatedFloodLevel{ 0.0 };
251 #ifndef ITK_MANUAL_INSTANTIATION
252 # include "itkWatershedSegmentTreeGenerator.hxx"