00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkHMinimaImageFilter_h
00018 #define __itkHMinimaImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00052 template<class TInputImage, class TOutputImage>
00053 class ITK_EXPORT HMinimaImageFilter :
00054 public ImageToImageFilter<TInputImage, TOutputImage>
00055 {
00056 public:
00058 typedef HMinimaImageFilter 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);
00082
00084 itkNewMacro(Self);
00085
00087 itkTypeMacro(HMinimaImageFilter,
00088 ImageToImageFilter);
00089
00094 itkSetMacro(Height, InputImagePixelType);
00095 itkGetMacro(Height, InputImagePixelType);
00097
00102 unsigned long GetNumberOfIterationsUsed()
00103 { itkLegacyBody(itk::HMinimaImageFilter::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(InputEqualityComparableCheck,
00121 (Concept::EqualityComparable<InputImagePixelType>));
00122 itkConceptMacro(IntConvertibleToInputCheck,
00123 (Concept::Convertible<int, InputImagePixelType>));
00124 itkConceptMacro(InputOStreamWritableCheck,
00125 (Concept::OStreamWritable<InputImagePixelType>));
00126
00128 #endif
00129
00130 protected:
00131 HMinimaImageFilter();
00132 ~HMinimaImageFilter() {};
00133 void PrintSelf(std::ostream& os, Indent indent) const;
00134
00138 void GenerateInputRequestedRegion() ;
00139
00141 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00142
00145 void GenerateData();
00146
00147
00148 private:
00149 HMinimaImageFilter(const Self&);
00150 void operator=(const Self&);
00151
00152 InputImagePixelType m_Height;
00153 unsigned long m_NumberOfIterationsUsed;
00154 bool m_FullyConnected;
00155 } ;
00156
00157 }
00158
00159 #ifndef ITK_MANUAL_INSTANTIATION
00160 #include "itkHMinimaImageFilter.txx"
00161 #endif
00162
00163 #endif
00164
00165
00166