Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkOpeningByReconstructionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkOpeningByReconstructionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 18:14:36 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
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&); //purposely not implemented
00145   void operator=(const Self&); //purposely not implemented
00146 
00148   KernelType          m_Kernel;
00149   bool                m_FullyConnected;
00150   bool                m_PreserveIntensities;
00151 }; // end of class
00152 
00153 } // end namespace itk
00154   
00155 #ifndef ITK_MANUAL_INSTANTIATION
00156 #include "itkOpeningByReconstructionImageFilter.txx"
00157 #endif
00158 
00159 #endif
00160 

Generated at Mon Jul 12 2010 19:21:00 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000