Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
0fbb860d
Commit
0fbb860d
authored
Jun 26, 2019
by
Victor Poughon
Browse files
DOC: fix missing import & clarify python doc example
parent
bbad099b
Pipeline
#1998
passed with stages
in 41 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Documentation/Cookbook/rst/PythonAPI.rst
View file @
0fbb860d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
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