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: 2009-04-25 12:27:26 $
00007   Version:   $Revision: 1.10 $
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 
00054 template<class TInputImage, class TOutputImage>
00055 class ITK_EXPORT HMaximaImageFilter : 
00056     public ImageToImageFilter<TInputImage, TOutputImage>
00057 {
00058 public:
00060   typedef HMaximaImageFilter        Self;
00061   typedef ImageToImageFilter<TInputImage, TOutputImage>
00062                                     Superclass;
00063   typedef SmartPointer<Self>        Pointer;
00064   typedef SmartPointer<const Self>  ConstPointer;
00065 
00067   typedef TInputImage                              InputImageType;
00068   typedef typename InputImageType::Pointer         InputImagePointer;
00069   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00070   typedef typename InputImageType::RegionType      InputImageRegionType;
00071   typedef typename InputImageType::PixelType       InputImagePixelType;
00072   typedef TOutputImage                             OutputImageType;
00073   typedef typename OutputImageType::Pointer        OutputImagePointer;
00074   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00075   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00076   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00077 
00079   itkStaticConstMacro(InputImageDimension, unsigned int,
00080                       TInputImage::ImageDimension);
00081   itkStaticConstMacro(OutputImageDimension, unsigned int,
00082                       TOutputImage::ImageDimension);
00084 
00086   itkNewMacro(Self);  
00087 
00089   itkTypeMacro(HMaximaImageFilter, 
00090                ImageToImageFilter);
00091 
00096   itkSetMacro(Height, InputImagePixelType);
00097   itkGetConstMacro(Height, InputImagePixelType);
00099 
00104   unsigned long GetNumberOfIterationsUsed()
00105     { 
00106     itkLegacyBodyMacro(itk::HMaximaImageFilter::GetNumberOfIterationsUsed, 2.2);
00107     return m_NumberOfIterationsUsed; 
00108     };
00110 
00117   itkSetMacro(FullyConnected, bool);
00118   itkGetConstReferenceMacro(FullyConnected, bool);
00119   itkBooleanMacro(FullyConnected);
00121 
00122 #ifdef ITK_USE_CONCEPT_CHECKING
00123 
00124   itkConceptMacro(InputEqualityComparableCheck,
00125     (Concept::EqualityComparable<InputImagePixelType>));
00126   itkConceptMacro(IntConvertibleToInputCheck,
00127     (Concept::Convertible<int, InputImagePixelType>));
00128   itkConceptMacro(InputOStreamWritableCheck,
00129     (Concept::OStreamWritable<InputImagePixelType>));
00130 
00132 #endif
00133 
00134 protected:
00135   HMaximaImageFilter();
00136   ~HMaximaImageFilter() {};
00137   void PrintSelf(std::ostream& os, Indent indent) const;
00138 
00142   void GenerateInputRequestedRegion();
00143 
00145   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00146 
00148   void GenerateData();
00149 
00150 
00151 private:
00152   HMaximaImageFilter(const Self&); //purposely not implemented
00153   void operator=(const Self&); //purposely not implemented
00154 
00155   InputImagePixelType m_Height;
00156   unsigned long       m_NumberOfIterationsUsed;
00157   bool                m_FullyConnected;
00158 }; // end of class
00159 
00160 } // end namespace itk
00161   
00162 #ifndef ITK_MANUAL_INSTANTIATION
00163 #include "itkHMaximaImageFilter.txx"
00164 #endif
00165 
00166 #endif
00167 

Generated at Mon Jul 12 2010 18:33:31 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000