OTB
9.0.0
Orfeo Toolbox
Modules
Core
LabelMap
include
otbLabelObjectFieldsFunctor.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
3
*
4
* This file is part of Orfeo Toolbox
5
*
6
* https://www.orfeo-toolbox.org/
7
*
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
11
*
12
* http://www.apache.org/licenses/LICENSE-2.0
13
*
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
19
*/
20
21
#ifndef otbLabelObjectFieldsFunctor_h
22
#define otbLabelObjectFieldsFunctor_h
23
24
#include "itkLabelObject.h"
25
#include <map>
26
27
namespace
otb
28
{
29
30
namespace
Functor
31
{
32
40
template
<
class
TLabelObject>
41
class
ITK_EXPORT
LabelObjectFieldsFunctor
42
{
43
public
:
44
// The Label Object typedef
45
typedef
TLabelObject
LabelObjectType
;
46
typedef
std::map<std::string, std::string>
FieldsMapType
;
47
48
FieldsMapType
operator()
(
LabelObjectType
* itkNotUsed(labelObject))
const
49
{
50
// don't return anything for standard LabelObject (label is already handled by LabelmapToVectorData)
51
return
FieldsMapType
();
52
}
53
};
54
55
}
// end namespace Functor
56
57
}
// end namespace otb
58
#endif
otb::Functor::LabelObjectFieldsFunctor
Returns additional OGR fields to be saved in VectorData.
Definition:
otbLabelObjectFieldsFunctor.h:41
otb::Functor::LabelObjectFieldsFunctor::operator()
FieldsMapType operator()(LabelObjectType *) const
Definition:
otbLabelObjectFieldsFunctor.h:48
otb::Functor::LabelObjectFieldsFunctor::FieldsMapType
std::map< std::string, std::string > FieldsMapType
Definition:
otbLabelObjectFieldsFunctor.h:46
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition:
otbJoinContainer.h:32
otb::Functor::LabelObjectFieldsFunctor::LabelObjectType
TLabelObject LabelObjectType
Definition:
otbLabelObjectFieldsFunctor.h:45
Generated at Wed Feb 28 2024 15:22:50 for
OTB
with
1.8.17