00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkClosingByReconstructionImageFilter_h
00018 #define __itkClosingByReconstructionImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00043 template<class TInputImage, class TOutputImage, class TKernel>
00044 class ITK_EXPORT ClosingByReconstructionImageFilter :
00045 public ImageToImageFilter<TInputImage, TOutputImage>
00046 {
00047 public:
00049 typedef ClosingByReconstructionImageFilter Self;
00050 typedef ImageToImageFilter<TInputImage, TOutputImage>
00051 Superclass;
00052 typedef SmartPointer<Self> Pointer;
00053 typedef SmartPointer<const Self> ConstPointer;
00054
00056 typedef TInputImage InputImageType;
00057 typedef TOutputImage OutputImageType;
00058 typedef typename InputImageType::Pointer InputImagePointer;
00059 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00060 typedef typename InputImageType::RegionType InputImageRegionType;
00061 typedef typename InputImageType::PixelType InputImagePixelType;
00062 typedef typename OutputImageType::Pointer OutputImagePointer;
00063 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00064 typedef typename OutputImageType::RegionType OutputImageRegionType;
00065 typedef typename OutputImageType::PixelType OutputImagePixelType;
00066
00068 typedef TKernel KernelType;
00069
00071 itkStaticConstMacro(InputImageDimension, unsigned int,
00072 TInputImage::ImageDimension);
00073 itkStaticConstMacro(OutputImageDimension, unsigned int,
00074 TOutputImage::ImageDimension);
00075
00077 itkNewMacro(Self);
00078
00080 itkTypeMacro(ClosingByReconstructionImageFilter,
00081 ImageToImageFilter);
00082
00084 itkSetMacro(Kernel, KernelType);
00085
00087 itkGetConstReferenceMacro(Kernel, KernelType);
00088
00095 itkSetMacro(FullyConnected, bool);
00096 itkGetConstReferenceMacro(FullyConnected, bool);
00097 itkBooleanMacro(FullyConnected);
00098
00099 protected:
00100 ClosingByReconstructionImageFilter();
00101 ~ClosingByReconstructionImageFilter() {};
00102 void PrintSelf(std::ostream& os, Indent indent) const;
00103
00107 void GenerateInputRequestedRegion() ;
00108
00110 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00111
00112 void GenerateData();
00113
00114
00115 private:
00116 ClosingByReconstructionImageFilter(const Self&);
00117 void operator=(const Self&);
00118
00120 KernelType m_Kernel ;
00121 bool m_FullyConnected;
00122 } ;
00123
00124 }
00125
00126 #ifndef ITK_MANUAL_INSTANTIATION
00127 #include "itkClosingByReconstructionImageFilter.txx"
00128 #endif
00129
00130 #endif
00131
00132