Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
a3ab4813
Commit
a3ab4813
authored
Mar 07, 2018
by
Guillaume Pasero
Browse files
DOC: clarification about EmptyParameter/BoolParameter
parent
47c79d52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Documentation/Cookbook/rst/recipes/python.rst
Documentation/Cookbook/rst/recipes/python.rst
+9
-5
No files found.
Documentation/Cookbook/rst/recipes/python.rst
View file @
a3ab4813
...
@@ -229,12 +229,16 @@ doing geometry, projections, and also calibration.
...
@@ -229,12 +229,16 @@ doing geometry, projections, and also calibration.
Future developments will probably offer a more adapted structure to import and
Future developments will probably offer a more adapted structure to import and
export images between OTB and Python world.
export images between OTB and Python world.
Setting of
boolean p
arameter
s
Setting of
EmptyP
arameter
^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^
Most of the parameters are set using functions ``SetParameterXXX()``. The boolean
Most of the parameters are set using functions ``SetParameterXXX()``, except for
parameters are handled differently (also called Empty parameter). Let's take an example with the application
one type of parameter: the ``EmptyParameter``. This class was the first
``ReadImageInfo``:
implementation of a boolean. It is now **deprecated**, you should use ``BoolParameter``
instead.
Let's take an example with the application ``ReadImageInfo`` when it was still
using an ``EmptyParameter`` for parameter ``keywordlist``:
.. code-block:: python
.. code-block:: python
...
...
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