Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien Peillet
otb
Commits
70f46e2e
Commit
70f46e2e
authored
7 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
DOC: python recipe new services
parent
57493726
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documentation/Cookbook/rst/recipes/python.rst
+7
-6
7 additions, 6 deletions
Documentation/Cookbook/rst/recipes/python.rst
with
7 additions
and
6 deletions
Documentation/Cookbook/rst/recipes/python.rst
+
7
−
6
View file @
70f46e2e
...
...
@@ -176,7 +176,7 @@ still be correct, but some intermediate data will be read or written.
Interactions with OTB pipeline
------------------------------
[
s
ince OTB 6.6]
[
S
ince OTB 6.6]
The application framework has been extended in order to provide ways to
interact with the pipelines inside each application. It applies only to
...
...
@@ -216,7 +216,7 @@ All these getters functions use the following arguments:
There is also a function to send orders to the pipeline:
``PropagateRequestedRegion(key, region, idx=0)``: set a given RequestedRegion
``PropagateRequestedRegion(key, region, idx=0)``: set
s
a given RequestedRegion
on the image and propagate it, returns the memory print estimation. This function
can be used to measure the requested portion of input images necessary to produce
an extract of the full output.
...
...
@@ -230,11 +230,11 @@ and Numpy arrays. There are now import and export functions available in
Python that preserve the metadata of the image during conversions to Numpy
arrays:
* ``ExportImage(self, key)``: export an output image parameter into a Python
* ``ExportImage(self, key)``: export
s
an output image parameter into a Python
dictionary.
* ``ImportImage(self, key, dict, index=0)``: import the image from a Python
* ``ImportImage(self, key, dict, index=0)``: import
s
the image from a Python
dictionary into an image parameter (as a monoband image).
* ``ImportVectorImage(self, key, dict, index=0)``: import the image from a
* ``ImportVectorImage(self, key, dict, index=0)``: import
s
the image from a
Python dictionary into an image parameter (as a multiband image).
The Python dictionary used has the following entries:
...
...
@@ -265,7 +265,8 @@ Now some basic Q&A about this interface:
dictionaries.
This interface allows you to export OTB images (or extracts) to Numpy array,
process them by other means, and re-import them with preserved metadatas.
process them by other means, and re-import them with preserved metadatas. Please
note that this is different from an in-memory connection.
Here is a small example of what can be done:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment