ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkGrayscaleGrindPeakImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 /*=========================================================================
00019  *
00020  *  Portions of this file are subject to the VTK Toolkit Version 3 copyright.
00021  *
00022  *  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00023  *
00024  *  For complete copyright, license and disclaimer of warranty information
00025  *  please refer to the NOTICE file at the top of the ITK source tree.
00026  *
00027  *=========================================================================*/
00028 #ifndef __itkGrayscaleGrindPeakImageFilter_h
00029 #define __itkGrayscaleGrindPeakImageFilter_h
00030 
00031 #include "itkImageToImageFilter.h"
00032 
00033 namespace itk
00034 {
00069 template< class TInputImage, class TOutputImage >
00070 class ITK_EXPORT GrayscaleGrindPeakImageFilter:
00071   public ImageToImageFilter< TInputImage, TOutputImage >
00072 {
00073 public:
00075   typedef GrayscaleGrindPeakImageFilter                   Self;
00076   typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00077   typedef SmartPointer< Self >                            Pointer;
00078   typedef SmartPointer< const Self >                      ConstPointer;
00079 
00081   typedef TInputImage                            InputImageType;
00082   typedef typename InputImageType::Pointer       InputImagePointer;
00083   typedef typename InputImageType::ConstPointer  InputImageConstPointer;
00084   typedef typename InputImageType::RegionType    InputImageRegionType;
00085   typedef typename InputImageType::PixelType     InputImagePixelType;
00086   typedef TOutputImage                           OutputImageType;
00087   typedef typename OutputImageType::Pointer      OutputImagePointer;
00088   typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00089   typedef typename OutputImageType::RegionType   OutputImageRegionType;
00090   typedef typename OutputImageType::PixelType    OutputImagePixelType;
00091 
00093   itkStaticConstMacro(InputImageDimension, unsigned int,
00094                       TInputImage::ImageDimension);
00095   itkStaticConstMacro(OutputImageDimension, unsigned int,
00096                       TOutputImage::ImageDimension);
00098 
00100   itkNewMacro(Self);
00101 
00103   itkTypeMacro(GrayscaleGrindPeakImageFilter,
00104                ImageToImageFilter);
00105 
00112   itkSetMacro(FullyConnected, bool);
00113   itkGetConstReferenceMacro(FullyConnected, bool);
00114   itkBooleanMacro(FullyConnected);
00116 
00117 #ifdef ITK_USE_CONCEPT_CHECKING
00118 
00119   itkConceptMacro( InputOStreamWritableCheck,
00120                    ( Concept::OStreamWritable< InputImagePixelType > ) );
00121 
00123 #endif
00124 protected:
00125   GrayscaleGrindPeakImageFilter();
00126   ~GrayscaleGrindPeakImageFilter() {}
00127   void PrintSelf(std::ostream & os, Indent indent) const;
00129 
00133   void GenerateInputRequestedRegion();
00134 
00136   void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) );
00137 
00140   void GenerateData();
00141 
00142 private:
00143   GrayscaleGrindPeakImageFilter(const Self &); //purposely not implemented
00144   void operator=(const Self &);                //purposely not implemented
00145 
00146   unsigned long m_NumberOfIterationsUsed;
00147 
00148   bool m_FullyConnected;
00149 }; // end of class
00150 } // end namespace itk
00151 
00152 #ifndef ITK_MANUAL_INSTANTIATION
00153 #include "itkGrayscaleGrindPeakImageFilter.hxx"
00154 #endif
00155 
00156 #endif
00157