Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __itkGrayscaleGrindPeakImageFilter_h
00021 #define __itkGrayscaleGrindPeakImageFilter_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 typename InputImageType::Pointer InputImagePointer;
00075 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00076 typedef typename InputImageType::RegionType InputImageRegionType;
00077 typedef typename InputImageType::PixelType InputImagePixelType;
00078 typedef TOutputImage OutputImageType;
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 {
00104 itkLegacyBodyMacro(itk::GrayscaleGrindPeakImageFilter::GetNumberOfIterationsUsed, 2.2);
00105 return m_NumberOfIterationsUsed;
00106 };
00108
00115 itkSetMacro(FullyConnected, bool);
00116 itkGetConstReferenceMacro(FullyConnected, bool);
00117 itkBooleanMacro(FullyConnected);
00119
00120 #ifdef ITK_USE_CONCEPT_CHECKING
00121
00122 itkConceptMacro(InputOStreamWritableCheck,
00123 (Concept::OStreamWritable<InputImagePixelType>));
00124
00126 #endif
00127
00128 protected:
00129 GrayscaleGrindPeakImageFilter();
00130 ~GrayscaleGrindPeakImageFilter() {};
00131 void PrintSelf(std::ostream& os, Indent indent) const;
00132
00136 void GenerateInputRequestedRegion();
00137
00139 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00140
00143 void GenerateData();
00144
00145
00146 private:
00147 GrayscaleGrindPeakImageFilter(const Self&);
00148 void operator=(const Self&);
00149
00150 unsigned long m_NumberOfIterationsUsed;
00151
00152 bool m_FullyConnected;
00153 };
00154
00155 }
00156
00157 #ifndef ITK_MANUAL_INSTANTIATION
00158 #include "itkGrayscaleGrindPeakImageFilter.txx"
00159 #endif
00160
00161 #endif
00162