00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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&);
00146 void operator=(const Self&);
00147
00148 unsigned long m_NumberOfIterationsUsed;
00149
00150 bool m_FullyConnected;
00151 } ;
00152
00153 }
00154
00155 #ifndef ITK_MANUAL_INSTANTIATION
00156 #include "itkGrayscaleGrindPeakImageFilter.txx"
00157 #endif
00158
00159 #endif
00160
00161
00162