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
8089441a
Commit
8089441a
authored
Nov 25, 2021
by
Julien Osman
Browse files
ENH: The python API provides an ImageMetadata in the image dictionary
parent
02b333c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Wrappers/SWIG/src/otbApplication.i
View file @
8089441a
...
...
@@ -482,7 +482,7 @@ public:
itk
::
Vector
<
SpacePrecisionType
,
2
>
spacing
,
itk
::
Size
<
2
>
size
,
itk
::
ImageRegion
<
2
>
bufferRegion
,
itk
Meta
D
ata
Dictionary
metadata
)
otb
::
Image
Meta
d
ata
metadata
)
{
img-
>
SetOrigin
(
origin
)
;
otb
::
internal
::
SetSignedSpacing
(
img
,
spacing
)
;
...
...
@@ -496,7 +496,7 @@ public:
}
img-
>
SetRequestedRegion
(
bufferRegion
)
;
img-
>
SetBufferedRegion
(
bufferRegion
)
;
img-
>
Set
Meta
D
ata
Dictionary
(
metadata
)
;
dynamic_cast
<
otb
::
ImageCommons
*>
(
img
)
->
SetImage
Meta
d
ata
(
metadata
)
;
}
}
/* end of %extend */
#
endif
/* OTB_SWIGNUMPY */
...
...
@@ -887,7 +887,7 @@ class ApplicationProxy(object):
output
[
"spacing"
]
=
self
.
GetImageSpacing
(
paramKey
)
output
[
"size"
]
=
self
.
GetImageSize
(
paramKey
)
output
[
"region"
]
=
self
.
GetImageRequestedRegion
(
paramKey
)
output
[
"metadata"
]
=
self
.
GetMetadata
Dictionary
(
paramKey
)
output
[
"metadata"
]
=
self
.
Get
Image
Metadata
(
paramKey
)
return
output
}
...
...
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