18 #ifndef __itkWatershedImageFilter_h
19 #define __itkWatershedImageFilter_h
149 template<
class TInputImage >
152 TInputImage::ImageDimension > >
162 itkStaticConstMacro (ImageDimension,
unsigned int,
163 TInputImage::ImageDimension);
170 typedef typename InputImageType::SizeType
SizeType;
193 using Superclass::SetInput;
198 if ( input != this->GetInput(0) )
200 m_InputChanged =
true;
206 m_Segmenter->SetInputImage( const_cast< InputImageType * >( input ) );
209 virtual void SetInput(
unsigned int i,
const TInputImage *image)
212 { itkExceptionMacro(<<
"Filter has only one input."); }
214 { this->SetInput(image); }
219 void SetThreshold(
double);
221 itkGetConstMacro(Threshold,
double);
225 void SetLevel(
double);
227 itkGetConstMacro(Level,
double);
231 GetBasicSegmentation()
234 return m_Segmenter->GetOutputImage();
242 return m_TreeGenerator->GetOutputSegmentTree();
246 void EnlargeOutputRequestedRegion(
DataObject *data);
248 #ifdef ITK_USE_CONCEPT_CHECKING
265 void PrintSelf(std::ostream & os,
Indent indent)
const;
269 virtual void PrepareOutputs();
273 void operator=(
const Self &);
306 #ifndef ITK_MANUAL_INSTANTIATION
307 #include "itkWatershedImageFilter.hxx"