Commit fb9a3b5f authored by Victor Poughon's avatar Victor Poughon

Merge branch 'doc-numpy-pipeline' into 'develop'

DOC: fix missing import & clarify python doc example

See merge request orfeotoolbox/otb!534
parents 88d1a34d 0fbb860d
Pipeline #2055 passed with stage
in 7 minutes and 38 seconds
......@@ -341,6 +341,7 @@ Here is a small example of what can be done:
.. code-block:: python
import otbApplication as otb
from sys import argv
# Create a smoothing application
app = otb.Registry.CreateApplication("Smoothing")
......@@ -354,7 +355,8 @@ Here is a small example of what can be done:
myRegion = otb.itkRegion()
myRegion['size'][0] = 20
myRegion['size'][1] = 25
myRegion['index'].Fill(10)
myRegion['index'][0] = 10
myRegion['index'][1] = 10
ram = app.PropagateRequestedRegion("out",myRegion)
# Check the requested region on the input image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment