Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
7cbd515c
Commit
7cbd515c
authored
Jan 29, 2021
by
Julien Osman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: Input and Output ImageMetadata are set in the good order
parent
b3b9f74b
Pipeline
#6669
failed with stages
in 89 minutes and 44 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
Modules/Filtering/DEM/include/otbDEMToImageGenerator.h
Modules/Filtering/DEM/include/otbDEMToImageGenerator.h
+4
-5
Modules/Filtering/DEM/test/otbDEMToImageGeneratorFromImageTest.cxx
...iltering/DEM/test/otbDEMToImageGeneratorFromImageTest.cxx
+0
-1
No files found.
Modules/Filtering/DEM/include/otbDEMToImageGenerator.h
View file @
7cbd515c
...
...
@@ -111,7 +111,6 @@ public:
/**
* Set/Get input & output projections.
* Set/Get input & output keywordlist
* The macro are not used here cause the input and the output are
* inversed.
*/
...
...
@@ -140,21 +139,21 @@ public:
/** Set/Get ImageMetadata*/
const
ImageMetadata
*
GetInputImageMetadata
()
const
{
return
m_Transform
->
Get
In
putImageMetadata
();
return
m_Transform
->
Get
Out
putImageMetadata
();
}
void
SetInputImageMetadata
(
const
ImageMetadata
*
imd
)
{
m_Transform
->
Set
In
putImageMetadata
(
imd
);
m_Transform
->
Set
Out
putImageMetadata
(
imd
);
this
->
Modified
();
}
const
ImageMetadata
*
GetOutputImageMetadata
()
const
{
return
m_Transform
->
Get
Out
putImageMetadata
();
return
m_Transform
->
Get
In
putImageMetadata
();
}
void
SetOutputImageMetadata
(
const
ImageMetadata
*
imd
)
{
m_Transform
->
Set
Out
putImageMetadata
(
imd
);
m_Transform
->
Set
In
putImageMetadata
(
imd
);
this
->
Modified
();
}
...
...
Modules/Filtering/DEM/test/otbDEMToImageGeneratorFromImageTest.cxx
View file @
7cbd515c
...
...
@@ -111,7 +111,6 @@ int otbDEMToImageGeneratorFromImageTest(int argc, char* argv[])
{
char
*
outputName2
=
argv
[
4
];
generatorFilter2
->
SetOutputParametersFromImage
(
reader
->
GetOutput
());
generatorFilter2
->
InstantiateTransform
();
extract2
->
SetInput
(
generatorFilter2
->
GetOutput
());
extract2
->
SetSizeX
(
atoi
(
argv
[
7
]));
...
...
Write
Preview
Markdown
is supported
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