Skip to content
Snippets Groups Projects
Commit a8631ab8 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: use int OGR field instead of strings

parent d5235dd4
No related branches found
No related tags found
No related merge requests found
......@@ -318,7 +318,7 @@ PersistentDescriptorsListSampleGenerator<TInputImage,TVectorData,TFunctionType,T
listSample->PushBack( sample );
LabelMeasurementVectorType label;
label[0] = static_cast<LabelMeasurementType>(vectorDataIt.Get()->GetFieldAsString("Class")[0]);
label[0] = static_cast<LabelMeasurementType>(vectorDataIt.Get()->GetFieldAsInt("Class"));
labelListSample->PushBack( label );
samplesPosition.push_back(point);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment