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

itkHMaximaImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkHMaximaImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/10/16 14:22:34 $
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 __itkHMaximaImageFilter_h
00018 #define __itkHMaximaImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00052 template<class TInputImage, class TOutputImage>
00053 class ITK_EXPORT HMaximaImageFilter : 
00054     public ImageToImageFilter<TInputImage, TOutputImage>
00055 {
00056 public:
00058   typedef HMaximaImageFilter Self;
00059   typedef ImageToImageFilter<TInputImage, TOutputImage>
00060   Superclass;
00061   typedef SmartPointer<Self>        Pointer;
00062   typedef SmartPointer<const Self>  ConstPointer;
00063 
00065   typedef TInputImage InputImageType;
00066   typedef TOutputImage OutputImageType;
00067   typedef typename InputImageType::Pointer         InputImagePointer;
00068   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00069   typedef typename InputImageType::RegionType      InputImageRegionType;
00070   typedef typename InputImageType::PixelType       InputImagePixelType;
00071   typedef typename OutputImageType::Pointer        OutputImagePointer;
00072   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00073   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00074   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00075 
00077   itkStaticConstMacro(InputImageDimension, unsigned int,
00078                       TInputImage::ImageDimension);
00079   itkStaticConstMacro(OutputImageDimension, unsigned int,
00080                       TOutputImage::ImageDimension);
00082 
00084   itkNewMacro(Self);  
00085 
00087   itkTypeMacro(HMaximaImageFilter, 
00088                ImageToImageFilter);
00089 
00094   itkSetMacro(Height, InputImagePixelType);
00095   itkGetMacro(Height, InputImagePixelType);
00097 
00102   unsigned long GetNumberOfIterationsUsed()
00103     { 
00104     itkLegacyBodyMacro(itk::HMaximaImageFilter::GetNumberOfIterationsUsed, 2.2);
00105     return m_NumberOfIterationsUsed; 
00106     };
00108 
00115   itkSetMacro(FullyConnected, bool);
00116   itkGetConstReferenceMacro(FullyConnected, bool);
00117   itkBooleanMacro(FullyConnected);
00119 
00120 #ifdef ITK_USE_CONCEPT_CHECKING
00121 
00122   itkConceptMacro(InputEqualityComparableCheck,
00123     (Concept::EqualityComparable<InputImagePixelType>));
00124   itkConceptMacro(IntConvertibleToInputCheck,
00125     (Concept::Convertible<int, InputImagePixelType>));
00126   itkConceptMacro(InputOStreamWritableCheck,
00127     (Concept::OStreamWritable<InputImagePixelType>));
00128 
00130 #endif
00131 
00132 protected:
00133   HMaximaImageFilter();
00134   ~HMaximaImageFilter() {};
00135   void PrintSelf(std::ostream& os, Indent indent) const;
00136 
00140   void GenerateInputRequestedRegion() ;
00141 
00143   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00144 
00147   void GenerateData();
00148 
00149 
00150 private:
00151   HMaximaImageFilter(const Self&); //purposely not implemented
00152   void operator=(const Self&); //purposely not implemented
00153 
00154   InputImagePixelType m_Height;
00155   unsigned long m_NumberOfIterationsUsed;
00156   bool                m_FullyConnected;
00157 } ; // end of class
00158 
00159 } // end namespace itk
00160   
00161 #ifndef ITK_MANUAL_INSTANTIATION
00162 #include "itkHMaximaImageFilter.txx"
00163 #endif
00164 
00165 #endif
00166 
00167 
00168 

Generated at Tue Jul 29 20:25:15 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000