itkMorphologicalWatershedImageFilter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkMorphologicalWatershedImageFilter_h
00018 #define __itkMorphologicalWatershedImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00044 template<class TInputImage, class TOutputImage>
00045 class ITK_EXPORT MorphologicalWatershedImageFilter :
00046 public ImageToImageFilter<TInputImage, TOutputImage>
00047 {
00048 public:
00050 typedef MorphologicalWatershedImageFilter Self;
00051 typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
00052 typedef SmartPointer<Self> Pointer;
00053 typedef SmartPointer<const Self> ConstPointer;
00054
00056 typedef TInputImage InputImageType;
00057 typedef TOutputImage OutputImageType;
00058 typedef typename InputImageType::Pointer InputImagePointer;
00059 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00060 typedef typename InputImageType::RegionType InputImageRegionType;
00061 typedef typename InputImageType::PixelType InputImagePixelType;
00062 typedef typename OutputImageType::Pointer OutputImagePointer;
00063 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00064 typedef typename OutputImageType::RegionType OutputImageRegionType;
00065 typedef typename OutputImageType::PixelType OutputImagePixelType;
00066
00068 itkStaticConstMacro(InputImageDimension, unsigned int,
00069 TInputImage::ImageDimension);
00070 itkStaticConstMacro(OutputImageDimension, unsigned int,
00071 TOutputImage::ImageDimension);
00073
00075 itkNewMacro(Self);
00076
00078 itkTypeMacro(MorphologicalWatershedImageFilter,
00079 ImageToImageFilter);
00080
00087 itkSetMacro(FullyConnected, bool);
00088 itkGetConstReferenceMacro(FullyConnected, bool);
00089 itkBooleanMacro(FullyConnected);
00091
00097 itkSetMacro(MarkWatershedLine, bool);
00098 itkGetConstReferenceMacro(MarkWatershedLine, bool);
00099 itkBooleanMacro(MarkWatershedLine);
00101
00104 itkSetMacro(Level, InputImagePixelType);
00105 itkGetMacro(Level, InputImagePixelType);
00107
00108 protected:
00109 MorphologicalWatershedImageFilter();
00110 ~MorphologicalWatershedImageFilter() {};
00111 void PrintSelf(std::ostream& os, Indent indent) const;
00112
00116 void GenerateInputRequestedRegion();
00117
00119 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00120
00123 void GenerateData();
00124
00125
00126 private:
00127 MorphologicalWatershedImageFilter(const Self&);
00128 void operator=(const Self&);
00129
00130 bool m_FullyConnected;
00131
00132 bool m_MarkWatershedLine;
00133
00134 InputImagePixelType m_Level;
00135
00136 };
00137
00138 }
00139
00140 #ifndef ITK_MANUAL_INSTANTIATION
00141 #include "itkMorphologicalWatershedImageFilter.txx"
00142 #endif
00143
00144 #endif
00145