Orfeo Toolbox  3.16
otbLabelMapToSampleListFilter.txx
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 __otbLabelMapToSampleListFilter_txx
19 #define __otbLabelMapToSampleListFilter_txx
20 
22 
23 namespace otb
24 {
25 
26 template <class TInputLabelMap, class TOutputListSample, class TMeasurementFunctor>
29 {
30 }
31 
32 template <class TInputLabelMap, class TOutputListSample, class TMeasurementFunctor>
35 {
36 }
37 
38 template <class TInputLabelMap, class TOutputListSample, class TMeasurementFunctor>
39 void
42 {
43  m_OutputSampleList = OutputSampleListType::New();
44 
45  typename InputLabelMapType::LabelObjectContainerType::const_iterator it
46  = m_InputLabelMap->GetLabelObjectContainer().begin();
47 
48  // iterate on label objects
49  while(it != m_InputLabelMap->GetLabelObjectContainer().end())
50  {
51  m_OutputSampleList->PushBack(m_MeasurementFunctor(it->second));
52  ++it;
53  }
54 }
55 
56 template <class TInputLabelMap, class TOutputListSample, class TMeasurementFunctor>
57 void
59 ::PrintSelf(std::ostream& os, itk::Indent indent) const
60 {
61  Superclass::PrintSelf(os, indent);
62 }
63 
64 } // end namespace otb
65 
66 #endif

Generated at Sun Feb 3 2013 00:33:12 for Orfeo Toolbox with doxygen 1.8.1.1