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