00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkHMaximaImageFilter_h
00018 #define __itkHMaximaImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00052 template<class TInputImage, class TOutputImage>
00053 class ITK_EXPORT HMaximaImageFilter :
00054 public ImageToImageFilter<TInputImage, TOutputImage>
00055 {
00056 public:
00058 typedef HMaximaImageFilter Self;
00059 typedef ImageToImageFilter<TInputImage, TOutputImage>
00060 Superclass;
00061 typedef SmartPointer<Self> Pointer;
00062 typedef SmartPointer<const Self> ConstPointer;
00063
00065 typedef TInputImage InputImageType;
00066 typedef TOutputImage OutputImageType;
00067 typedef typename InputImageType::Pointer InputImagePointer;
00068 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00069 typedef typename InputImageType::RegionType InputImageRegionType;
00070 typedef typename InputImageType::PixelType InputImagePixelType;
00071 typedef typename OutputImageType::Pointer OutputImagePointer;
00072 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00073 typedef typename OutputImageType::RegionType OutputImageRegionType;
00074 typedef typename OutputImageType::PixelType OutputImagePixelType;
00075
00077 itkStaticConstMacro(InputImageDimension, unsigned int,
00078 TInputImage::ImageDimension);
00079 itkStaticConstMacro(OutputImageDimension, unsigned int,
00080 TOutputImage::ImageDimension);
00081
00083 itkNewMacro(Self);
00084
00086 itkTypeMacro(HMaximaImageFilter,
00087 ImageToImageFilter);
00088
00093 itkSetMacro(Height, InputImagePixelType);
00094 itkGetMacro(Height, InputImagePixelType);
00095
00098 itkGetMacro(NumberOfIterationsUsed, unsigned long);
00099
00100 protected:
00101 HMaximaImageFilter();
00102 ~HMaximaImageFilter() {};
00103 void PrintSelf(std::ostream& os, Indent indent) const;
00104
00108 void GenerateInputRequestedRegion() ;
00109
00111 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00112
00115 void GenerateData();
00116
00117
00118 private:
00119 HMaximaImageFilter(const Self&);
00120 void operator=(const Self&);
00121
00122 InputImagePixelType m_Height;
00123 unsigned long m_NumberOfIterationsUsed;
00124 } ;
00125
00126 }
00127
00128 #ifndef ITK_MANUAL_INSTANTIATION
00129 #include "itkHMaximaImageFilter.txx"
00130 #endif
00131
00132 #endif
00133
00134