00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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&);
00132 void operator=(const Self&);
00133
00134 unsigned long m_NumberOfIterationsUsed;
00135
00136 bool m_FullyConnected;
00137 } ;
00138
00139 }
00140
00141 #ifndef ITK_MANUAL_INSTANTIATION
00142 #include "itkGrayscaleGrindPeakImageFilter.txx"
00143 #endif
00144
00145 #endif
00146
00147