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

itkGrayscaleGrindPeakImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGrayscaleGrindPeakImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/23 15:09:02 $
00007   Version:   $Revision: 1.2 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkGrindPeakImageFilter_h
00018 #define __itkGrindPeakImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk {
00023 
00057 template<class TInputImage, class TOutputImage>
00058 class ITK_EXPORT GrayscaleGrindPeakImageFilter : 
00059   public ImageToImageFilter<TInputImage, TOutputImage>
00060 {
00061 public:
00063   typedef GrayscaleGrindPeakImageFilter Self;
00064   typedef ImageToImageFilter<TInputImage, TOutputImage>
00065     Superclass;
00066   typedef SmartPointer<Self>        Pointer;
00067   typedef SmartPointer<const Self>  ConstPointer;
00068 
00070   typedef TInputImage InputImageType;
00071   typedef TOutputImage OutputImageType;
00072   typedef typename InputImageType::Pointer         InputImagePointer;
00073   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00074   typedef typename InputImageType::RegionType      InputImageRegionType;
00075   typedef typename InputImageType::PixelType       InputImagePixelType;
00076   typedef typename OutputImageType::Pointer        OutputImagePointer;
00077   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00078   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00079   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00080   
00082   itkStaticConstMacro(InputImageDimension, unsigned int,
00083                       TInputImage::ImageDimension);
00084   itkStaticConstMacro(OutputImageDimension, unsigned int,
00085                       TOutputImage::ImageDimension);
00086 
00088   itkNewMacro(Self);  
00089 
00091   itkTypeMacro(GrayscaleGrindPeakImageFilter, 
00092                ImageToImageFilter);
00093   
00098   unsigned long GetNumberOfIterationsUsed()
00099     { itkLegacyBody(itk::GrayscaleGrindPeakImageFilter::GetNumberOfIterationsUsed, 2.2);
00100       return m_NumberOfIterationsUsed; };
00101 
00108   itkSetMacro(FullyConnected, bool);
00109   itkGetConstReferenceMacro(FullyConnected, bool);
00110   itkBooleanMacro(FullyConnected);
00111   
00112 protected:
00113   GrayscaleGrindPeakImageFilter();
00114   ~GrayscaleGrindPeakImageFilter() {};
00115   void PrintSelf(std::ostream& os, Indent indent) const;
00116 
00120   void GenerateInputRequestedRegion() ;
00121 
00123   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00124   
00127   void GenerateData();
00128   
00129 
00130 private:
00131   GrayscaleGrindPeakImageFilter(const Self&); //purposely not implemented
00132   void operator=(const Self&); //purposely not implemented
00133 
00134   unsigned long m_NumberOfIterationsUsed;
00135 
00136   bool                m_FullyConnected;
00137 } ; // end of class
00138 
00139 } // end namespace itk
00140   
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkGrayscaleGrindPeakImageFilter.txx"
00143 #endif
00144 
00145 #endif
00146 
00147 

Generated at Wed May 24 23:14:51 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000