17 #ifndef __itkWatershedImageFilter_h
18 #define __itkWatershedImageFilter_h
21 #pragma warning ( disable : 4786 )
151 template <
class TInputImage>
154 ::itk::GetImageDimension<TInputImage>::ImageDimension> >
164 itkStaticConstMacro (ImageDimension,
unsigned int,
165 TInputImage::ImageDimension);
172 typedef typename InputImageType::SizeType
SizeType;
199 if (input != this->GetInput(0))
201 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); }
218 void SetThreshold(
double);
219 itkGetConstMacro(Threshold,
double);
223 void SetLevel(
double);
224 itkGetConstMacro(Level,
double);
228 GetBasicSegmentation()
231 return m_Segmenter->GetOutputImage();
238 return m_TreeGenerator->GetOutputSegmentTree();
242 void EnlargeOutputRequestedRegion(
DataObject *data);
244 #ifdef ITK_USE_CONCEPT_CHECKING
262 void PrintSelf(std::ostream& os,
Indent indent)
const;
266 virtual void PrepareOutputs();
300 #ifndef ITK_MANUAL_INSTANTIATION