Orfeo Toolbox  3.16
itkLabelMapToRGBImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkLabelMapToRGBImageFilter.h,v $
5  Language: C++
6  Date: $Date: 2005/08/23 15:09:03 $
7  Version: $Revision: 1.4 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkLabelMapToRGBImageFilter_h
18 #define __itkLabelMapToRGBImageFilter_h
19 
20 #include "itkLabelMapFilter.h"
21 #include "itkLabelToRGBFunctor.h"
22 #include "itkImage.h"
23 #include "itkRGBPixel.h"
24 
25 
26 namespace itk {
27 
36 template<class TInputImage, class TOutputImage=Image< RGBPixel<unsigned char>, TInputImage::ImageDimension > >
38  public LabelMapFilter<TInputImage, TOutputImage>
39 {
40 public:
47 
49  typedef TInputImage InputImageType;
50  typedef TOutputImage OutputImageType;
51  typedef typename InputImageType::Pointer InputImagePointer;
52  typedef typename InputImageType::ConstPointer InputImageConstPointer;
53  typedef typename InputImageType::RegionType InputImageRegionType;
54  typedef typename InputImageType::PixelType InputImagePixelType;
55  typedef typename InputImageType::LabelObjectType LabelObjectType;
56 
57  typedef typename OutputImageType::Pointer OutputImagePointer;
58  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
59  typedef typename OutputImageType::RegionType OutputImageRegionType;
60  typedef typename OutputImageType::PixelType OutputImagePixelType;
61  typedef typename OutputImageType::IndexType IndexType;
62 
64 
66  itkStaticConstMacro(InputImageDimension, unsigned int,
67  TInputImage::ImageDimension);
68  itkStaticConstMacro(OutputImageDimension, unsigned int,
69  TOutputImage::ImageDimension);
70 
72  itkNewMacro(Self);
73 
75  itkTypeMacro(LabelMapToRGBImageFilter,
77 
78 protected:
81 
82  virtual void BeforeThreadedGenerateData();
83 
84  virtual void ThreadedGenerateData( LabelObjectType * labelObject );
85 
86 private:
87  LabelMapToRGBImageFilter(const Self&); //purposely not implemented
88  void operator=(const Self&); //purposely not implemented
89 
90 } ; // end of class
91 
92 } // end namespace itk
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
96 #endif
97 
98 #endif
99 
100 

Generated at Sat Feb 2 2013 23:49:36 for Orfeo Toolbox with doxygen 1.8.1.1