Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMorphologicalWatershedImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMorphologicalWatershedImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/26 15:01:47 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
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&); //purposely not implemented
00128   void operator=(const Self&); //purposely not implemented
00129 
00130   bool m_FullyConnected;
00131 
00132   bool m_MarkWatershedLine;
00133 
00134   InputImagePixelType m_Level;
00135 
00136 }; // end of class
00137 
00138 } // end namespace itk
00139   
00140 #ifndef ITK_MANUAL_INSTANTIATION
00141 #include "itkMorphologicalWatershedImageFilter.txx"
00142 #endif
00143 
00144 #endif
00145 

Generated at Wed Nov 5 22:57:10 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000