00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkHConcaveImageFilter_h
00018 #define __itkHConcaveImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00042 template<class TInputImage, class TOutputImage>
00043 class ITK_EXPORT HConcaveImageFilter :
00044 public ImageToImageFilter<TInputImage, TOutputImage>
00045 {
00046 public:
00048 typedef HConcaveImageFilter Self;
00049 typedef ImageToImageFilter<TInputImage, TOutputImage>
00050 Superclass;
00051 typedef SmartPointer<Self> Pointer;
00052 typedef SmartPointer<const Self> ConstPointer;
00053
00055 typedef TInputImage InputImageType;
00056 typedef TOutputImage OutputImageType;
00057 typedef typename InputImageType::Pointer InputImagePointer;
00058 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00059 typedef typename InputImageType::RegionType InputImageRegionType;
00060 typedef typename InputImageType::PixelType InputImagePixelType;
00061 typedef typename OutputImageType::Pointer OutputImagePointer;
00062 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00063 typedef typename OutputImageType::RegionType OutputImageRegionType;
00064 typedef typename OutputImageType::PixelType OutputImagePixelType;
00065
00067 itkStaticConstMacro(InputImageDimension, unsigned int,
00068 TInputImage::ImageDimension);
00069 itkStaticConstMacro(OutputImageDimension, unsigned int,
00070 TOutputImage::ImageDimension);
00072
00074 itkNewMacro(Self);
00075
00077 itkTypeMacro(HConcaveImageFilter,
00078 ImageToImageFilter);
00079
00084 itkSetMacro(Height, InputImagePixelType);
00085 itkGetMacro(Height, InputImagePixelType);
00087
00092 unsigned long GetNumberOfIterationsUsed()
00093 { itkLegacyBody(itk::HConcaveImageFilter::GetNumberOfIterationsUsed, 2.2);
00094 return m_NumberOfIterationsUsed; };
00096
00103 itkSetMacro(FullyConnected, bool);
00104 itkGetConstReferenceMacro(FullyConnected, bool);
00105 itkBooleanMacro(FullyConnected);
00107
00108 #ifdef ITK_USE_CONCEPT_CHECKING
00109
00110 itkConceptMacro(InputEqualityComparableCheck,
00111 (Concept::EqualityComparable<InputImagePixelType>));
00112 itkConceptMacro(IntConvertibleToInputCheck,
00113 (Concept::Convertible<int, InputImagePixelType>));
00114 itkConceptMacro(InputOStreamWritableCheck,
00115 (Concept::OStreamWritable<InputImagePixelType>));
00116
00118 #endif
00119
00120 protected:
00121 HConcaveImageFilter();
00122 ~HConcaveImageFilter() {};
00123 void PrintSelf(std::ostream& os, Indent indent) const;
00124
00128 void GenerateInputRequestedRegion() ;
00129
00131 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00132
00135 void GenerateData();
00136
00137
00138 private:
00139 HConcaveImageFilter(const Self&);
00140 void operator=(const Self&);
00141
00142 InputImagePixelType m_Height;
00143 unsigned long m_NumberOfIterationsUsed;
00144 bool m_FullyConnected;
00145 } ;
00146
00147 }
00148
00149 #ifndef ITK_MANUAL_INSTANTIATION
00150 #include "itkHConcaveImageFilter.txx"
00151 #endif
00152
00153 #endif
00154
00155
00156