OTB
9.0.0
Orfeo Toolbox
Modules
Remote
otbGRM
include
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 */
36
typedef
Segmenter<TImage, SpringNode, SpringParam>
Superclass
;
37
typedef
TImage
ImageType
;
38
typedef
typename
Superclass::GraphType
GraphType
;
39
typedef
typename
Superclass::NodePointerType
NodePointerType
;
40
typedef
typename
Superclass::GraphOperatorType
GraphOperatorType
;
41
typedef
GraphToOtbImage<GraphType>
IOType
;
42
43
float
ComputeMergingCost
(
NodePointerType
n1,
NodePointerType
n2);
44
void
UpdateSpecificAttributes
(
NodePointerType
n1,
NodePointerType
n2);
45
void
InitFromImage
();
46
};
47
}
// end of namespace grm
48
#include "grmSpringSegmenter.txx"
49
#endif
grmSegmenter.h
grm::SpringSegmenter::NodePointerType
Superclass::NodePointerType NodePointerType
Definition:
grmSpringSegmenter.h:39
grm::GraphToOtbImage
Definition:
grmGraphToOtbImage.h:35
grm
Definition:
grmBaatzSegmenter.h:22
grm::SpringNode::m_Means
std::vector< float > m_Means
Definition:
grmSpringSegmenter.h:26
grm::SpringSegmenter::ComputeMergingCost
float ComputeMergingCost(NodePointerType n1, NodePointerType n2)
grm::SpringSegmenter::UpdateSpecificAttributes
void UpdateSpecificAttributes(NodePointerType n1, NodePointerType n2)
grm::Segmenter
Definition:
grmSegmenter.h:27
grm::SpringNode
Definition:
grmSpringSegmenter.h:24
grm::SpringParam
Definition:
grmSpringSegmenter.h:29
grm::SpringSegmenter::GraphType
Superclass::GraphType GraphType
Definition:
grmSpringSegmenter.h:38
grm::SpringSegmenter
Definition:
grmSpringSegmenter.h:32
grm::Segmenter< TImage, SpringNode, SpringParam >::NodePointerType
GraphOperatorType::NodePointerType NodePointerType
Definition:
grmSegmenter.h:40
grm::Node
Definition:
grmGraph.h:83
grm::Graph< NodeType >
grm::SpringSegmenter::Superclass
Segmenter< TImage, SpringNode, SpringParam > Superclass
Definition:
grmSpringSegmenter.h:36
grm::SpringSegmenter::InitFromImage
void InitFromImage()
grm::SpringSegmenter::ImageType
TImage ImageType
Definition:
grmSpringSegmenter.h:37
grm::GraphOperations
Definition:
grmGraphOperations.h:34
grm::SpringSegmenter::GraphOperatorType
Superclass::GraphOperatorType GraphOperatorType
Definition:
grmSpringSegmenter.h:40
grm::SpringSegmenter::IOType
GraphToOtbImage< GraphType > IOType
Definition:
grmSpringSegmenter.h:41
Generated at Wed Feb 28 2024 15:21:24 for
OTB
with
1.8.17