itkClosingByReconstructionImageFilter.h
Go to the documentation of this file.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
00049 template<class TInputImage, class TOutputImage, class TKernel>
00050 class ITK_EXPORT ClosingByReconstructionImageFilter :
00051 public ImageToImageFilter<TInputImage, TOutputImage>
00052 {
00053 public:
00055 typedef ClosingByReconstructionImageFilter Self;
00056 typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
00057 typedef SmartPointer<Self> Pointer;
00058 typedef SmartPointer<const Self> ConstPointer;
00059
00061 typedef TInputImage InputImageType;
00062 typedef typename InputImageType::Pointer InputImagePointer;
00063 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00064 typedef typename InputImageType::RegionType InputImageRegionType;
00065 typedef typename InputImageType::PixelType InputImagePixelType;
00066
00067 typedef TOutputImage OutputImageType;
00068 typedef typename OutputImageType::Pointer OutputImagePointer;
00069 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00070 typedef typename OutputImageType::RegionType OutputImageRegionType;
00071 typedef typename OutputImageType::PixelType OutputImagePixelType;
00072
00074 typedef TKernel KernelType;
00075
00077 itkStaticConstMacro(InputImageDimension, unsigned int,
00078 TInputImage::ImageDimension);
00079 itkStaticConstMacro(OutputImageDimension, unsigned int,
00080 TOutputImage::ImageDimension);
00082
00084 itkNewMacro(Self);
00085
00087 itkTypeMacro(ClosingByReconstructionImageFilter,
00088 ImageToImageFilter);
00089
00091 itkSetMacro(Kernel, KernelType);
00092
00094 itkGetConstReferenceMacro(Kernel, KernelType);
00095
00102 itkSetMacro(FullyConnected, bool);
00103 itkGetConstReferenceMacro(FullyConnected, bool);
00104 itkBooleanMacro(FullyConnected);
00106
00111 itkSetMacro(PreserveIntensities, bool);
00112 itkGetConstReferenceMacro(PreserveIntensities, bool);
00113 itkBooleanMacro(PreserveIntensities);
00115
00116 #ifdef ITK_USE_CONCEPT_CHECKING
00117
00118 itkConceptMacro(InputConvertibleToOutputCheck,
00119 (Concept::Convertible<InputImagePixelType, OutputImagePixelType>));
00120
00122 #endif
00123
00124 protected:
00125 ClosingByReconstructionImageFilter();
00126 ~ClosingByReconstructionImageFilter() {};
00127 void PrintSelf(std::ostream& os, Indent indent) const;
00128
00132 void GenerateInputRequestedRegion();
00133
00135 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00136
00137 void GenerateData();
00138
00139
00140 private:
00141 ClosingByReconstructionImageFilter(const Self&);
00142 void operator=(const Self&);
00143
00145 KernelType m_Kernel;
00146 bool m_FullyConnected;
00147 bool m_PreserveIntensities;
00148 };
00149
00150 }
00151
00152 #ifndef ITK_MANUAL_INSTANTIATION
00153 #include "itkClosingByReconstructionImageFilter.txx"
00154 #endif
00155
00156 #endif
00157