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

itkGrayscaleConnectedClosingImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleConnectedClosingImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/03/28 19:59:04 $
00007   Version:   $Revision: 1.7 $
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 __itkConnectedClosingImageFilter_h
00018 #define __itkConnectedClosingImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00042 template<class TInputImage, class TOutputImage>
00043 class ITK_EXPORT GrayscaleConnectedClosingImageFilter : 
00044     public ImageToImageFilter<TInputImage, TOutputImage>
00045 {
00046 public:
00048   typedef GrayscaleConnectedClosingImageFilter Self;
00049   typedef ImageToImageFilter<TInputImage, TOutputImage>
00050   Superclass;
00051   typedef SmartPointer<Self>        Pointer;
00052   typedef SmartPointer<const Self>  ConstPointer;
00053 
00055   typedef TInputImage InputImageType;
00056   typedef TOutputImage OutputImageType;
00057   typedef typename InputImageType::Pointer         InputImagePointer;
00058   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00059   typedef typename InputImageType::RegionType      InputImageRegionType;
00060   typedef typename InputImageType::PixelType       InputImagePixelType;
00061   typedef typename InputImageRegionType::IndexType InputImageIndexType;
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(GrayscaleConnectedClosingImageFilter, 
00079                ImageToImageFilter);
00080 
00082   itkSetMacro(Seed, InputImageIndexType);
00083   itkGetMacro(Seed, InputImageIndexType);
00085 
00090   unsigned long GetNumberOfIterationsUsed()
00091     { itkLegacyBody(itk::GrayscaleConnectedClosingImageFilter::GetNumberOfIterationsUsed, 2.2);
00092       return m_NumberOfIterationsUsed; };
00094 
00101   itkSetMacro(FullyConnected, bool);
00102   itkGetConstReferenceMacro(FullyConnected, bool);
00103   itkBooleanMacro(FullyConnected);
00105 
00106 #ifdef ITK_USE_CONCEPT_CHECKING
00107 
00108   itkConceptMacro(InputEqualityComparableCheck,
00109     (Concept::EqualityComparable<InputImagePixelType>));
00110   itkConceptMacro(InputConvertibleToOutputCheck,
00111     (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00112   itkConceptMacro(InputOStreamWritableCheck,
00113     (Concept::OStreamWritable<InputImagePixelType>));
00114 
00116 #endif
00117 
00118 protected:
00119   GrayscaleConnectedClosingImageFilter();
00120   ~GrayscaleConnectedClosingImageFilter() {};
00121   void PrintSelf(std::ostream& os, Indent indent) const;
00122 
00126   void GenerateInputRequestedRegion() ;
00127 
00129   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00130 
00133   void GenerateData();
00134 
00135 
00136 private:
00137   GrayscaleConnectedClosingImageFilter(const Self&); //purposely not implemented
00138   void operator=(const Self&); //purposely not implemented
00139 
00140   unsigned long m_NumberOfIterationsUsed;
00141   InputImageIndexType m_Seed;
00142   
00143   bool                m_FullyConnected;
00144 } ; // end of class
00145 
00146 } // end namespace itk
00147   
00148 #ifndef ITK_MANUAL_INSTANTIATION
00149 #include "itkGrayscaleConnectedClosingImageFilter.txx"
00150 #endif
00151 
00152 #endif
00153 
00154 
00155 

Generated at Sun Sep 23 12:43:47 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000