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
David Youssefi
otb
Commits
c33861a6
Commit
c33861a6
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
TEST: finalize the ReflectanceToSurfaceReflectance new test
parent
f5fda829
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Code/Radiometry/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx
+10
-7
10 additions, 7 deletions
...try/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx
with
10 additions
and
7 deletions
Testing/Code/Radiometry/otbReflectanceToSurfaceReflectanceImageFilterTest.cxx
+
10
−
7
View file @
c33861a6
...
@@ -36,7 +36,8 @@ int otbReflectanceToSurfaceReflectanceImageFilterNew(int argc, char * argv[])
...
@@ -36,7 +36,8 @@ int otbReflectanceToSurfaceReflectanceImageFilterNew(int argc, char * argv[])
ReflectanceToSurfaceReflectanceImageFilterType
;
ReflectanceToSurfaceReflectanceImageFilterType
;
// Instantiating object
// Instantiating object
ReflectanceToSurfaceReflectanceImageFilterType
::
Pointer
filter
=
ReflectanceToSurfaceReflectanceImageFilterType
::
New
();
ReflectanceToSurfaceReflectanceImageFilterType
::
Pointer
filter
=
ReflectanceToSurfaceReflectanceImageFilterType
::
New
();
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
}
}
...
@@ -88,7 +89,8 @@ int otbReflectanceToSurfaceReflectanceImageFilterTest(int argc, char * argv[])
...
@@ -88,7 +89,8 @@ int otbReflectanceToSurfaceReflectanceImageFilterTest(int argc, char * argv[])
atmo
->
SetUpwardTransmittances
(
upTrans
);
atmo
->
SetUpwardTransmittances
(
upTrans
);
// Instantiating object
// Instantiating object
ReflectanceToSurfaceReflectanceImageFilterType
::
Pointer
filter
=
ReflectanceToSurfaceReflectanceImageFilterType
::
New
();
ReflectanceToSurfaceReflectanceImageFilterType
::
Pointer
filter
=
ReflectanceToSurfaceReflectanceImageFilterType
::
New
();
filter
->
SetAtmosphericRadiativeTerms
(
atmo
);
filter
->
SetAtmosphericRadiativeTerms
(
atmo
);
filter
->
SetInput
(
reader
->
GetOutput
());
filter
->
SetInput
(
reader
->
GetOutput
());
writer
->
SetInput
(
filter
->
GetOutput
());
writer
->
SetInput
(
filter
->
GetOutput
());
...
@@ -98,6 +100,7 @@ int otbReflectanceToSurfaceReflectanceImageFilterTest(int argc, char * argv[])
...
@@ -98,6 +100,7 @@ int otbReflectanceToSurfaceReflectanceImageFilterTest(int argc, char * argv[])
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
}
}
//Check the correct generation of the atmospheric parameters
int
otbReflectanceToSurfaceReflectanceImageFilterTest2
(
int
argc
,
char
*
argv
[])
int
otbReflectanceToSurfaceReflectanceImageFilterTest2
(
int
argc
,
char
*
argv
[])
{
{
const
char
*
inputFileName
=
argv
[
1
];
const
char
*
inputFileName
=
argv
[
1
];
...
@@ -121,14 +124,14 @@ int otbReflectanceToSurfaceReflectanceImageFilterTest2(int argc, char * argv[])
...
@@ -121,14 +124,14 @@ int otbReflectanceToSurfaceReflectanceImageFilterTest2(int argc, char * argv[])
reader
->
UpdateOutputInformation
();
reader
->
UpdateOutputInformation
();
// Instantiating object
// Instantiating object
ReflectanceToSurfaceReflectanceImageFilterType
::
Pointer
filter
=
ReflectanceToSurfaceReflectanceImageFilterType
::
New
();
ReflectanceToSurfaceReflectanceImageFilterType
::
Pointer
filter
=
ReflectanceToSurfaceReflectanceImageFilterType
::
New
();
filter
->
SetInput
(
reader
->
GetOutput
());
filter
->
SetInput
(
reader
->
GetOutput
());
// filter->UpdateAtmosphericRadiativeTerms();
filter
->
GenerateParameters
();
otb
::
AtmosphericRadiativeTerms
::
Pointer
terms
=
filter
->
GetAtmosphericRadiativeTerms
();
std
::
ofstream
fout
(
outputFileName
);
std
::
ofstream
fout
(
outputFileName
);
fout
<<
filter
->
GetAtmosphericRadiativeTerms
();
fout
<<
terms
;
fout
<<
"
\n
"
;
fout
<<
filter
;
fout
.
close
();
fout
.
close
();
return
EXIT_SUCCESS
;
return
EXIT_SUCCESS
;
...
...
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