Commit 0fbb860d authored by Victor Poughon's avatar Victor Poughon

DOC: fix missing import & clarify python doc example

parent bbad099b
Pipeline #1998 passed with stages
in 41 minutes and 53 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