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: 2006/09/26 12:05:05 $
00007   Version:   $Revision: 1.4 $
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   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkGrindPeakImageFilter_h
00021 #define __itkGrindPeakImageFilter_h
00022 
00023 #include "itkImageToImageFilter.h"
00024 
00025 namespace itk {
00026 
00060 template<class TInputImage, class TOutputImage>
00061 class ITK_EXPORT GrayscaleGrindPeakImageFilter : 
00062   public ImageToImageFilter<TInputImage, TOutputImage>
00063 {
00064 public:
00066   typedef GrayscaleGrindPeakImageFilter Self;
00067   typedef ImageToImageFilter<TInputImage, TOutputImage>
00068     Superclass;
00069   typedef SmartPointer<Self>        Pointer;
00070   typedef SmartPointer<const Self>  ConstPointer;
00071 
00073   typedef TInputImage InputImageType;
00074   typedef TOutputImage OutputImageType;
00075   typedef typename InputImageType::Pointer         InputImagePointer;
00076   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00077   typedef typename InputImageType::RegionType      InputImageRegionType;
00078   typedef typename InputImageType::PixelType       InputImagePixelType;
00079   typedef typename OutputImageType::Pointer        OutputImagePointer;
00080   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00081   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00082   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00083 
00085   itkStaticConstMacro(InputImageDimension, unsigned int,
00086                       TInputImage::ImageDimension);
00087   itkStaticConstMacro(OutputImageDimension, unsigned int,
00088                       TOutputImage::ImageDimension);
00090 
00092   itkNewMacro(Self);  
00093 
00095   itkTypeMacro(GrayscaleGrindPeakImageFilter, 
00096                ImageToImageFilter);
00097 
00102   unsigned long GetNumberOfIterationsUsed()
00103     { itkLegacyBody(itk::GrayscaleGrindPeakImageFilter::GetNumberOfIterationsUsed, 2.2);
00104       return m_NumberOfIterationsUsed; };
00106 
00113   itkSetMacro(FullyConnected, bool);
00114   itkGetConstReferenceMacro(FullyConnected, bool);
00115   itkBooleanMacro(FullyConnected);
00117 
00118 #ifdef ITK_USE_CONCEPT_CHECKING
00119 
00120   itkConceptMacro(InputOStreamWritableCheck,
00121                   (Concept::OStreamWritable<InputImagePixelType>));
00122 
00124 #endif
00125 
00126 protected:
00127   GrayscaleGrindPeakImageFilter();
00128   ~GrayscaleGrindPeakImageFilter() {};
00129   void PrintSelf(std::ostream& os, Indent indent) const;
00130 
00134   void GenerateInputRequestedRegion() ;
00135 
00137   void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00138 
00141   void GenerateData();
00142 
00143 
00144 private:
00145   GrayscaleGrindPeakImageFilter(const Self&); //purposely not implemented
00146   void operator=(const Self&); //purposely not implemented
00147 
00148   unsigned long m_NumberOfIterationsUsed;
00149 
00150   bool                m_FullyConnected;
00151 } ; // end of class
00152 
00153 } // end namespace itk
00154   
00155 #ifndef ITK_MANUAL_INSTANTIATION
00156 #include "itkGrayscaleGrindPeakImageFilter.txx"
00157 #endif
00158 
00159 #endif
00160 
00161 
00162 

Generated at Mon Mar 12 00:38:09 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000