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

itkClosingByReconstructionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkClosingByReconstructionImageFilter.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 __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&); //purposely not implemented
00142   void operator=(const Self&); //purposely not implemented
00143 
00145   KernelType          m_Kernel;
00146   bool                m_FullyConnected;
00147   bool                m_PreserveIntensities;
00148 }; // end of class
00149 
00150 } // end namespace itk
00151   
00152 #ifndef ITK_MANUAL_INSTANTIATION
00153 #include "itkClosingByReconstructionImageFilter.txx"
00154 #endif
00155 
00156 #endif
00157 

Generated at Fri Apr 16 18:05:02 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000