diff --git a/Documentation/Cookbook/rst/recipes/python.rst b/Documentation/Cookbook/rst/recipes/python.rst index cbb119372dab87e687c015f08f467ad9ac62f69a..33e46e1977558c6d3171d12f93b065e403ade01f 100644 --- a/Documentation/Cookbook/rst/recipes/python.rst +++ b/Documentation/Cookbook/rst/recipes/python.rst @@ -56,6 +56,15 @@ application, changing the algorithm at each iteration. # This will execute the application and save the output file app.ExecuteAndWriteOutput() +If you want to handle the parameters from a Python dictionary, you can use the +functions *SetParameters()* and *GetParameters()*. + +.. code-block:: python + + params = {"in":"myInput.tif", "type.mean.radius":4} + app.SetParameters(params) + params2 = app.GetParameters() + Numpy array processing ----------------------