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: 2006-03-17 14:22:25 $
00007   Version:   $Revision: 1.3 $
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>
00057   Superclass;
00058   typedef SmartPointer<Self>        Pointer;
00059   typedef SmartPointer<const Self>  ConstPointer;
00060 
00062   typedef TInputImage InputImageType;
00063   typedef TOutputImage OutputImageType;
00064   typedef typename InputImageType::Pointer         InputImagePointer;
00065   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00066   typedef typename InputImageType::RegionType      InputImageRegionType;
00067   typedef typename InputImageType::PixelType       InputImagePixelType;
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 
00158 
00159 

Generated at Mon Apr 14 11:59:09 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000