00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkReconstructionByErosionImageFilter_h
00018 #define __itkReconstructionByErosionImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00053 template<class TInputImage, class TOutputImage>
00054 class ITK_EXPORT ReconstructionByErosionImageFilter :
00055 public ImageToImageFilter<TInputImage, TOutputImage>
00056 {
00057 public:
00059 typedef ReconstructionByErosionImageFilter Self;
00060 typedef ImageToImageFilter<TInputImage, TOutputImage>
00061 Superclass;
00062 typedef SmartPointer<Self> Pointer;
00063 typedef SmartPointer<const Self> ConstPointer;
00064
00066 typedef TInputImage MarkerImageType;
00067 typedef TInputImage MaskImageType;
00068 typedef TOutputImage OutputImageType;
00069 typedef typename MarkerImageType::Pointer MarkerImagePointer;
00070 typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer;
00071 typedef typename MarkerImageType::RegionType MarkerImageRegionType;
00072 typedef typename MarkerImageType::PixelType MarkerImagePixelType;
00073 typedef typename MaskImageType::Pointer MaskImagePointer;
00074 typedef typename MaskImageType::ConstPointer MaskImageConstPointer;
00075 typedef typename MaskImageType::RegionType MaskImageRegionType;
00076 typedef typename MaskImageType::PixelType MaskImagePixelType;
00077 typedef typename OutputImageType::Pointer OutputImagePointer;
00078 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00079 typedef typename OutputImageType::RegionType OutputImageRegionType;
00080 typedef typename OutputImageType::PixelType OutputImagePixelType;
00081
00083 itkStaticConstMacro(MarkerImageDimension, unsigned int,
00084 TInputImage::ImageDimension);
00085 itkStaticConstMacro(MaskImageDimension, unsigned int,
00086 TInputImage::ImageDimension);
00087 itkStaticConstMacro(OutputImageDimension, unsigned int,
00088 TOutputImage::ImageDimension);
00089
00091 itkNewMacro(Self);
00092
00094 itkTypeMacro(ReconstructionByErosionImageFilter,
00095 ImageToImageFilter);
00096
00100 void SetMarkerImage(const MarkerImageType *);
00101 const MarkerImageType* GetMarkerImage();
00102
00106 void SetMaskImage(const MaskImageType *);
00107 const MaskImageType* GetMaskImage();
00108
00115 itkSetMacro(FullyConnected, bool);
00116 itkGetConstReferenceMacro(FullyConnected, bool);
00117 itkBooleanMacro(FullyConnected);
00118
00119 protected:
00120 ReconstructionByErosionImageFilter();
00121 ~ReconstructionByErosionImageFilter() {};
00122 void PrintSelf(std::ostream& os, Indent indent) const;
00123
00130 void GenerateInputRequestedRegion();
00131
00136 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00137
00144 void GenerateData();
00145
00146 private:
00147 ReconstructionByErosionImageFilter(const Self&);
00148 void operator=(const Self&);
00149
00150 bool m_FullyConnected;
00151
00152 } ;
00153
00154 }
00155
00156 #ifndef ITK_MANUAL_INSTANTIATION
00157 #include "itkReconstructionByErosionImageFilter.txx"
00158 #endif
00159
00160 #endif
00161
00162