Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
80e4d318
Commit
80e4d318
authored
Sep 18, 2017
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: Mantis-1438: switch to float type
parent
624fb29b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Modules/Applications/AppClassification/app/otbVectorClassifier.cxx
...pplications/AppClassification/app/otbVectorClassifier.cxx
+2
-2
No files found.
Modules/Applications/AppClassification/app/otbVectorClassifier.cxx
View file @
80e4d318
...
...
@@ -62,7 +62,7 @@ public:
itkTypeMacro
(
Self
,
Application
)
/** Filters typedef */
typedef
double
ValueType
;
typedef
float
ValueType
;
typedef
unsigned
int
LabelType
;
typedef
itk
::
FixedArray
<
LabelType
,
1
>
LabelSampleType
;
typedef
itk
::
Statistics
::
ListSample
<
LabelSampleType
>
LabelListSampleType
;
...
...
@@ -223,7 +223,7 @@ private:
unsigned
int
itemIndex
=
GetSelectedItems
(
"feat"
)[
idx
];
std
::
string
fieldName
=
GetChoiceNames
(
"feat"
)[
itemIndex
];
mv
[
idx
]
=
(
*
it
)[
fieldName
].
GetValue
<
double
>
();
mv
[
idx
]
=
static_cast
<
ValueType
>
(
(
*
it
)[
fieldName
].
GetValue
<
double
>
()
)
;
}
input
->
PushBack
(
mv
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment