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
7cbd515c
Commit
7cbd515c
authored
Jan 29, 2021
by
Julien Osman
Browse files
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
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
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