Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
2c7eff94
Commit
2c7eff94
authored
13 years ago
by
Otmane Lahlou
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Use NonPositiveMax to add negative value for float params
parent
80f7522f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/Projections/otbOrthoRectification.cxx
+0
-4
0 additions, 4 deletions
Applications/Projections/otbOrthoRectification.cxx
Code/ApplicationEngine/otbWrapperNumericalParameter.h
+14
-3
14 additions, 3 deletions
Code/ApplicationEngine/otbWrapperNumericalParameter.h
with
14 additions
and
7 deletions
Applications/Projections/otbOrthoRectification.cxx
+
0
−
4
View file @
2c7eff94
...
...
@@ -217,10 +217,6 @@ private:
genericRSEstimator
->
SetOutputProjectionRef
(
m_OutputProjectionRef
);
genericRSEstimator
->
Compute
();
// Update the GUI
dynamic_cast
<
NumericalParameter
<
float
>
*
>
(
GetParameterByKey
(
"outputs.spacingy"
))
->
SetMinimumValue
(
-
50000.0
);
dynamic_cast
<
NumericalParameter
<
float
>
*
>
(
GetParameterByKey
(
"outputs.spacingy"
))
->
SetMaximumValue
(
10000.0
);
// Fill the Gui with the computed parameters
if
(
!
HasUserValue
(
"outputs.ulx"
))
{
...
...
This diff is collapsed.
Click to expand it.
Code/ApplicationEngine/otbWrapperNumericalParameter.h
+
14
−
3
View file @
2c7eff94
...
...
@@ -95,10 +95,21 @@ public:
itkGetMacro
(
DefaultValue
,
ScalarType
);
/** Set the minimum value */
itkSetMacro
(
MinimumValue
,
ScalarType
);
//itkSetMacro(MinimumValue, ScalarType);
void
SetMinimumValue
(
ScalarType
min
)
{
std
::
cout
<<
"SetMinimum Value (old value : "
<<
m_MinimumValue
<<
" ) -- ( new value :"
<<
min
<<
" )"
<<
std
::
endl
;
m_MinimumValue
=
min
;
}
/** Get the minimum value */
itkGetMacro
(
MinimumValue
,
ScalarType
);
//itkGetMacro(MinimumValue, ScalarType);
ScalarType
GetMinimumValue
()
{
std
::
cout
<<
"Param "
<<
GetKey
()
<<
" GetMinimum Value "
<<
m_MinimumValue
<<
std
::
endl
;
return
m_MinimumValue
;
}
/** Set the maximum value */
itkSetMacro
(
MaximumValue
,
ScalarType
);
...
...
@@ -110,7 +121,7 @@ protected:
/** Constructor */
NumericalParameter
()
:
m_DefaultValue
(
itk
::
NumericTraits
<
T
>::
Zero
),
m_MinimumValue
(
itk
::
NumericTraits
<
T
>::
m
in
()),
m_MinimumValue
(
itk
::
NumericTraits
<
T
>::
NonpositiveM
in
()),
m_MaximumValue
(
itk
::
NumericTraits
<
T
>::
max
())
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment