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-07-30 22:54:24 $
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 __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, TInputImage::ImageDimension);
00067   itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
00069 
00071   itkNewMacro(Self);  
00072 
00074   itkTypeMacro(LabelMapToLabelImageFilter, ImageToImageFilter);
00075 
00076 protected:
00077   LabelMapToLabelImageFilter();
00078   ~LabelMapToLabelImageFilter() {};
00079 
00080   virtual void BeforeThreadedGenerateData();
00081 
00082   virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );  
00083 
00084 private:
00085   LabelMapToLabelImageFilter(const Self&); //purposely not implemented
00086   void operator=(const Self&); //purposely not implemented
00087 
00088 }; // end of class
00089 
00090 } // end namespace itk
00091   
00092 #ifndef ITK_MANUAL_INSTANTIATION
00093 #include "itkLabelMapToLabelImageFilter.txx"
00094 #endif
00095 
00096 #endif
00097 

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