21 #ifndef otbLabelObjectWithClassLabelFieldsFunctor_h
22 #define otbLabelObjectWithClassLabelFieldsFunctor_h
24 #include "itkLabelObject.h"
40 template <
class TLabelObject>
50 typename LabelObjectType::ClassLabelType classLabel = labelObject->GetClassLabel();
51 std::ostringstream oss;
55 fields[
"Class"] = oss.str();
Returns additional OGR fields to be saved in VectorData.
std::map< std::string, std::string > FieldsMapType
FieldsMapType operator()(LabelObjectType *labelObject) const
TLabelObject LabelObjectType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.