itkOpeningByReconstructionImageFilter.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 __itkOpeningByReconstructionImageFilter_h
00018 #define __itkOpeningByReconstructionImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk {
00023
00052 template<class TInputImage, class TOutputImage, class TKernel>
00053 class ITK_EXPORT OpeningByReconstructionImageFilter :
00054 public ImageToImageFilter<TInputImage, TOutputImage>
00055 {
00056 public:
00058 typedef OpeningByReconstructionImageFilter Self;
00059 typedef ImageToImageFilter<TInputImage, TOutputImage>
00060 Superclass;
00061 typedef SmartPointer<Self> Pointer;
00062 typedef SmartPointer<const Self> ConstPointer;
00063
00065 typedef TInputImage InputImageType;
00066 typedef typename InputImageType::Pointer InputImagePointer;
00067 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00068 typedef typename InputImageType::RegionType InputImageRegionType;
00069 typedef typename InputImageType::PixelType InputImagePixelType;
00070 typedef TOutputImage OutputImageType;
00071 typedef typename OutputImageType::Pointer OutputImagePointer;
00072 typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
00073 typedef typename OutputImageType::RegionType OutputImageRegionType;
00074 typedef typename OutputImageType::PixelType OutputImagePixelType;
00075
00077 typedef TKernel KernelType;
00078
00080 itkStaticConstMacro(InputImageDimension, unsigned int,
00081 TInputImage::ImageDimension);
00082 itkStaticConstMacro(OutputImageDimension, unsigned int,
00083 TOutputImage::ImageDimension);
00085
00087 itkNewMacro(Self);
00088
00090 itkTypeMacro(OpeningByReconstructionImageFilter,
00091 ImageToImageFilter);
00092
00094 itkSetMacro(Kernel, KernelType);
00095
00097 itkGetConstReferenceMacro(Kernel, KernelType);
00098
00105 itkSetMacro(FullyConnected, bool);
00106 itkGetConstReferenceMacro(FullyConnected, bool);
00107 itkBooleanMacro(FullyConnected);
00109
00114 itkSetMacro(PreserveIntensities, bool);
00115 itkGetConstReferenceMacro(PreserveIntensities, bool);
00116 itkBooleanMacro(PreserveIntensities);
00118
00119 #ifdef ITK_USE_CONCEPT_CHECKING
00120
00121 itkConceptMacro(InputEqualityComparableCheck,
00122 (Concept::EqualityComparable<InputImagePixelType>));
00123
00125 #endif
00126
00127 protected:
00128 OpeningByReconstructionImageFilter();
00129 ~OpeningByReconstructionImageFilter() {};
00130 void PrintSelf(std::ostream& os, Indent indent) const;
00131
00135 void GenerateInputRequestedRegion();
00136
00138 void EnlargeOutputRequestedRegion(DataObject *itkNotUsed(output));
00139
00140 void GenerateData();
00141
00142
00143 private:
00144 OpeningByReconstructionImageFilter(const Self&);
00145 void operator=(const Self&);
00146
00148 KernelType m_Kernel;
00149 bool m_FullyConnected;
00150 bool m_PreserveIntensities;
00151 };
00152
00153 }
00154
00155 #ifndef ITK_MANUAL_INSTANTIATION
00156 #include "itkOpeningByReconstructionImageFilter.txx"
00157 #endif
00158
00159 #endif
00160