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
Main Repositories
otb
Commits
1c766f82
Commit
1c766f82
authored
7 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
DOC: grammatical corrections in otb app python recipe (review)
parent
e2b456e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!28
Review OTB application recipe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documentation/Cookbook/rst/recipes/python.rst
+2
-2
2 additions, 2 deletions
Documentation/Cookbook/rst/recipes/python.rst
with
2 additions
and
2 deletions
Documentation/Cookbook/rst/recipes/python.rst
+
2
−
2
View file @
1c766f82
...
...
@@ -73,7 +73,7 @@ The Python wrapping only exposes OTB Application engine module (called *Applicat
Due to blissful nature of ApplicationEngine's loading mechanism no specific wrapping is required for each application.
NumPy extension to Python wrapping allows data exchange to application as an array rather than a disk file.
Of course, it is possible to load an image from file and then convert to NumPy
Of course, it is possible to load an image from file and then convert
it
to NumPy
array or just provide a file as explained in the previous section via
Application.SetParameterString(...).
...
...
@@ -81,7 +81,7 @@ The bridge between NumPy and OTB makes it easy to plug OTB into any image proces
GIS/Image processing tools such as GDAL, GRASS GIS, OSSIM that can deal with NumPy.
Below code reads an input image using Python Pillow library (fork of PIL) and convert it to
NumPy array. The NumPy array is used an input to the application via
NumPy array. The NumPy array is used
as
an input to the application via
*SetImageFromNumpyArray(...)* method. The application used in this example is
ExtractROI. After extracting a small area the output image is taken as NumPy
array with *GetImageFromNumpyArray(...)* method thus avoid writing output to a
...
...
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