OTB  10.0.0
Orfeo Toolbox
grmSpringSegmenter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Generic Region Merging Library
4  Language: C++
5  author: Lassalle Pierre
6  contact: lassallepierre34@gmail.com
7 
8 
9 
10  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved
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 GRM_SPRING_SEGMENTER_H
19 #define GRM_SPRING_SEGMENTER_H
20 #include "grmSegmenter.h"
21 
22 namespace grm
23 {
24  struct SpringNode : Node<SpringNode>
25  {
26  std::vector<float> m_Means;
27  };
28 
29  struct SpringParam{};
30 
31  template<class TImage>
32  class SpringSegmenter : public Segmenter< TImage, SpringNode, SpringParam>
33  {
34  public:
35  /* Some convenient typedefs */
37  typedef TImage ImageType;
38  typedef typename Superclass::GraphType GraphType;
42 
45  void InitFromImage();
46  };
47 } // end of namespace grm
48 #include "grmSpringSegmenter.txx"
49 #endif
GraphOperatorType::NodePointerType NodePointerType
Definition: grmSegmenter.h:40
Superclass::GraphOperatorType GraphOperatorType
Superclass::GraphType GraphType
Segmenter< TImage, SpringNode, SpringParam > Superclass
float ComputeMergingCost(NodePointerType n1, NodePointerType n2)
void UpdateSpecificAttributes(NodePointerType n1, NodePointerType n2)
Superclass::NodePointerType NodePointerType
GraphToOtbImage< GraphType > IOType
std::vector< float > m_Means