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
Container Registry
Model registry
Operate
Environments
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
Sébastien Peillet
otb
Commits
c65b6cda
Commit
c65b6cda
authored
8 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Sensor model test will perform deburst if possible
parent
fe2c90a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp
+18
-1
18 additions, 1 deletion
.../ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp
with
18 additions
and
1 deletion
Modules/ThirdParty/OssimPlugins/test/ossimSentinel1ModelTest.cpp
+
18
−
1
View file @
c65b6cda
...
...
@@ -88,10 +88,27 @@ int main(int argc, char * argv[])
sensor
->
print
(
std
::
clog
);
}
const
bool
validate
=
inverse
==
inv
bool
validate
=
inverse
==
inv
?
sensor
->
autovalidateInverseModelFromGCPs
()
:
sensor
->
autovalidateForwardModelFromGCPs
()
;
std
::
vector
<
std
::
pair
<
unsigned
long
,
unsigned
long
>>
deburstLines
;
std
::
cout
<<
"Trying to deburst data ..."
<<
std
::
endl
;
bool
deburstOk
=
sensor
->
deburst
(
deburstLines
);
std
::
cout
<<
"Deburst succeed: "
<<
(
deburstOk
?
"yes"
:
"no"
)
<<
std
::
endl
;
if
(
deburstOk
)
{
std
::
cout
<<
"Validation with deburst model"
<<
std
::
endl
;
validate
=
validate
&&
(
inverse
==
inv
?
sensor
->
autovalidateInverseModelFromGCPs
()
:
sensor
->
autovalidateForwardModelFromGCPs
());
}
std
::
cout
<<
"Validate: "
<<
validate
<<
"
\n
"
;
return
validate
?
EXIT_SUCCESS
:
EXIT_FAILURE
;
...
...
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