Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
c60f4ae7
Commit
c60f4ae7
authored
Oct 18, 2022
by
Luc Hermitte
Committed by
Thibaut ROMAIN
Oct 18, 2022
Browse files
BUG: Support `nan` in application parameters
parent
86de8dbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Wrappers/ApplicationEngine/include/otbWrapperNumericalParameter.h
View file @
c60f4ae7
...
...
@@ -22,6 +22,7 @@
#define otbWrapperNumericalParameter_h
#include
"otbWrapperParameter.h"
#include
"otbAlgoClamp.h"
#include
"itkNumericTraits.h"
#include
<boost/optional.hpp>
...
...
@@ -56,7 +57,7 @@ public:
/** Set the value */
void
SetValue
(
ScalarType
value
)
{
m_Value
=
(
value
<
m_MinimumValue
)
?
m_MinimumValue
:
(
value
<
m_M
ax
imumValue
)
?
value
:
m_MaximumValue
;
m_Value
=
otb
::
clamp
(
value
,
m_M
in
imumValue
,
m_MaximumValue
)
;
// Set Active only if the parameter is not automatically set
if
(
!
GetAutomaticValue
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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