diff --git a/Documentation/Cookbook/rst/recipes/python.rst b/Documentation/Cookbook/rst/recipes/python.rst index cbb119372dab87e687c015f08f467ad9ac62f69a..92c6b2dabd21af5f76eee1b3d78fd06b9fb25b24 100644 --- a/Documentation/Cookbook/rst/recipes/python.rst +++ b/Documentation/Cookbook/rst/recipes/python.rst @@ -229,12 +229,16 @@ doing geometry, projections, and also calibration. Future developments will probably offer a more adapted structure to import and export images between OTB and Python world. -Setting of boolean parameters -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Setting of EmptyParameter +^^^^^^^^^^^^^^^^^^^^^^^^^ -Most of the parameters are set using functions ``SetParameterXXX()``. The boolean -parameters are handled differently (also called Empty parameter). Let's take an example with the application -``ReadImageInfo``: +Most of the parameters are set using functions ``SetParameterXXX()``, except for +one type of parameter: the ``EmptyParameter``. This class was the first +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