Orfeo Toolbox  3.16
otbLabelMapWithClassLabelToClassLabelImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: ORFEO Toolbox
4 Language: C++
5 Date: $Date$
6 Version: $Revision$
7 
8 
9 Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10 See OTBCopyright.txt for details.
11 
12 
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbLabelMapWithClassLabelToClassLabelImageFilter_h
19 #define __otbLabelMapWithClassLabelToClassLabelImageFilter_h
20 
21 #include "itkLabelMapFilter.h"
22 
23 namespace otb {
24 
29 template<class TInputImage, class TOutputImage>
31  public itk::LabelMapFilter<TInputImage, TOutputImage>
32 {
33 public:
40 
42  typedef TInputImage InputImageType;
43  typedef TOutputImage OutputImageType;
44  typedef typename InputImageType::Pointer InputImagePointer;
45  typedef typename InputImageType::ConstPointer InputImageConstPointer;
46  typedef typename InputImageType::RegionType InputImageRegionType;
47  typedef typename InputImageType::PixelType InputImagePixelType;
48  typedef typename InputImageType::LabelObjectType LabelObjectType;
49 
50  typedef typename OutputImageType::Pointer OutputImagePointer;
51  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
52  typedef typename OutputImageType::RegionType OutputImageRegionType;
53  typedef typename OutputImageType::PixelType OutputImagePixelType;
54  typedef typename OutputImageType::IndexType IndexType;
55 
57  itkStaticConstMacro(InputImageDimension, unsigned int,
58  TInputImage::ImageDimension);
59  itkStaticConstMacro(OutputImageDimension, unsigned int,
60  TOutputImage::ImageDimension);
61 
63  itkNewMacro(Self);
64 
67  ImageToImageFilter);
68 
69 protected:
72 
73  virtual void BeforeThreadedGenerateData();
74 
75  virtual void ThreadedProcessLabelObject( LabelObjectType * labelObject );
76 
77 private:
78  LabelMapWithClassLabelToClassLabelImageFilter(const Self&); //purposely not implemented
79  void operator=(const Self&); //purposely not implemented
80 
81 }; // end of class
82 
83 } // end namespace otb
84 
85 #ifndef OTB_MANUAL_INSTANTIATION
87 #endif
88 
89 #endif
90 
91 

Generated at Sun May 19 2013 00:35:07 for Orfeo Toolbox with doxygen 1.8.3.1