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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Julien Cabieces
otb
Commits
349d4a0a
Commit
349d4a0a
authored
10 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Mantis-942: document the GDALImageIO to explain why default origin is set to [0.5,0.5].
parent
149b9ced
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/IO/otbGDALImageIO.h
+28
-2
28 additions, 2 deletions
Code/IO/otbGDALImageIO.h
with
28 additions
and
2 deletions
Code/IO/otbGDALImageIO.h
+
28
−
2
View file @
349d4a0a
...
...
@@ -32,7 +32,29 @@ class GDALDataTypeWrapper;
/** \class GDALImageIO
*
* \brief ImageIO object for reading (not writing) GDAL images
* \brief ImageIO object for reading and writing images with GDAL
*
* This ImageIO uses GDAL interface to read/write images. The
* origin and spacing are translated from/to GDAL geotransform
* matrix (even in the case of a sensor image). It means that
* extracts from sensor images are well supported. Typical
* sensor images in OTB have a spacing of [1,1] and an origin
* at [0.5,0.5] (when there is no GDAL geotransform, GDAL
* physical space is identical to GDAL index space).
*
* Note that the geotransform matrix supports any rotated physical
* space whereas OTB doesn't.
*
* \em Warning : the index coordinate system used in GDAL is attached
* to the corner of the top left pixel, whereas in OTB, the index
* coordinate system is attached to the centre of the top-left
* pixel. It means that the origin coefficents read from the
* GDAL geotransform are the location of the top-left pixel
* corner. This is why this location has to be shifted by
* half a pixel to be used as an OTB origin. In a nutshell,
* OTB images read/written by this ImageIO have the \em same
* physical space as GDAL physical space : a given point of
* image has the same physical location in OTB and in GDAL.
*
* The streaming read is implemented.
*
...
...
@@ -142,7 +164,11 @@ public:
protected
:
/** Constructor.*/
/**
* Constructor.
* Spacing is set to [1,1] and origin to [0.5,0.5] as it would correspond
* to an image without geotransform
*/
GDALImageIO
();
/** Destructor.*/
virtual
~
GDALImageIO
();
...
...
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