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

itkLabelMapToLabelImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLabelMapToLabelImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-16 22:19:31 $
00007   Version:   $Revision: 1.2 $
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 __itkLabelMapToLabelImageFilter_h
00018 #define __itkLabelMapToLabelImageFilter_h
00019 
00020 #include "itkLabelMapFilter.h"
00021 
00022 namespace itk {
00023 
00039 template<class TInputImage, class TOutputImage>
00040 class ITK_EXPORT LabelMapToLabelImageFilter : 
00041     public LabelMapFilter<TInputImage, TOutputImage>
00042 {
00043 public:
00045   typedef LabelMapToLabelImageFilter                Self;
00046   typedef LabelMapFilter<TInputImage, TOutputImage> Superclass;
00047   typedef SmartPointer<Self>                        Pointer;
00048   typedef SmartPointer<const Self>                  ConstPointer;
00049 
00051   typedef TInputImage                              InputImageType;
00052   typedef TOutputImage                             OutputImageType;
00053   typedef typename InputImageType::Pointer         InputImagePointer;
00054   typedef typename InputImageType::ConstPointer    InputImageConstPointer;
00055   typedef typename InputImageType::RegionType      InputImageRegionType;
00056   typedef typename InputImageType::PixelType       InputImagePixelType;
00057   typedef typename InputImageType::LabelObjectType LabelObjectType;
00058 
00059   typedef typename OutputImageType::Pointer        OutputImagePointer;
00060   typedef typename OutputImageType::ConstPointer   OutputImageConstPointer;
00061   typedef typename OutputImageType::RegionType     OutputImageRegionType;
00062   typedef typename OutputImageType::PixelType      OutputImagePixelType;
00063   typedef typename OutputImageType::IndexType      IndexType;
00064   
00066   itkStaticConstMacro(InputImageDimension, unsigned int,
00067                       TInputImage::ImageDimension);
00068   itkStaticConstMacro(OutputImageDimension, unsigned int,
00069                       TOutputImage::ImageDimension);
00071 
00073   itkNewMacro(Self);  
00074 
00076   itkTypeMacro(LabelMapToLabelImageFilter, 
00077                ImageToImageFilter);
00078 
00079 protected:
00080   LabelMapToLabelImageFilter();
00081   ~LabelMapToLabelImageFilter() {};
00082 
00083   virtual void BeforeThreadedGenerateData();
00084 
00085   virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );  
00086 
00087 private:
00088   LabelMapToLabelImageFilter(const Self&); //purposely not implemented
00089   void operator=(const Self&); //purposely not implemented
00090 
00091 }; // end of class
00092 
00093 } // end namespace itk
00094   
00095 #ifndef ITK_MANUAL_INSTANTIATION
00096 #include "itkLabelMapToLabelImageFilter.txx"
00097 #endif
00098 
00099 #endif
00100 

Generated at Thu May 28 10:38:43 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000