Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diapotb
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
Remote Modules
diapotb
Commits
1ff1eac7
Commit
1ff1eac7
authored
5 years ago
by
Gaëlle USSEGLIO
Browse files
Options
Downloads
Patches
Plain Diff
ENH : Add extended filename into SAROrthoInterferogram application
parent
7198528e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!28
Interfero dem
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/otbSAROrthoInterferogram.cxx
+34
-0
34 additions, 0 deletions
app/otbSAROrthoInterferogram.cxx
with
34 additions
and
0 deletions
app/otbSAROrthoInterferogram.cxx
+
34
−
0
View file @
1ff1eac7
...
@@ -94,6 +94,12 @@ namespace otb
...
@@ -94,6 +94,12 @@ namespace otb
SetDefaultParameterInt
(
"margin"
,
1000
);
SetDefaultParameterInt
(
"margin"
,
1000
);
SetMinimumParameterIntValue
(
"margin"
,
0
);
SetMinimumParameterIntValue
(
"margin"
,
0
);
MandatoryOff
(
"margin"
);
MandatoryOff
(
"margin"
);
AddParameter
(
ParameterType_Int
,
"streamingsizevalue"
,
"Value to specify the streaming size (in MB)"
);
SetParameterDescription
(
"streamingsizevalue"
,
"Value to specify the streaming size (in MB)"
);
SetDefaultParameterInt
(
"streamingsizevalue"
,
3000
);
// Default 3GB
SetMinimumParameterIntValue
(
"streamingsizevalue"
,
0
);
MandatoryOff
(
"streamingsizevalue"
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Interferogram"
);
AddParameter
(
ParameterType_OutputImage
,
"out"
,
"Interferogram"
);
SetParameterDescription
(
"out"
,
"Output Vector Image : Interferogram."
);
SetParameterDescription
(
"out"
,
"Output Vector Image : Interferogram."
);
...
@@ -118,9 +124,11 @@ namespace otb
...
@@ -118,9 +124,11 @@ namespace otb
// Get numeric parameters
// Get numeric parameters
double
factor_gain
=
GetParameterFloat
(
"gain"
);
double
factor_gain
=
GetParameterFloat
(
"gain"
);
int
margin
=
GetParameterInt
(
"margin"
);
int
margin
=
GetParameterInt
(
"margin"
);
int
streamingSizeValue
=
GetParameterInt
(
"streamingsizevalue"
);
otbAppLogINFO
(
<<
"Gain Factor : "
<<
factor_gain
);
otbAppLogINFO
(
<<
"Gain Factor : "
<<
factor_gain
);
otbAppLogINFO
(
<<
"Margin : "
<<
margin
);
otbAppLogINFO
(
<<
"Margin : "
<<
margin
);
/////////////////////////////////// Compensated Complex Filter ////////////////////////////////////////
/////////////////////////////////// Compensated Complex Filter ////////////////////////////////////////
// Instanciate the first filter
// Instanciate the first filter
...
@@ -162,6 +170,32 @@ namespace otb
...
@@ -162,6 +170,32 @@ namespace otb
filterGroupedBy
->
SetCartesianMeanInput
(
CartMeanPtr
);
filterGroupedBy
->
SetCartesianMeanInput
(
CartMeanPtr
);
filterGroupedBy
->
SetCompensatedComplexInput
(
filterCompensatedComplex
->
GetOutput
());
filterGroupedBy
->
SetCompensatedComplexInput
(
filterCompensatedComplex
->
GetOutput
());
// Define the main pipeline (controlled with extended FileName in order to obtain better performances)
Parameter
*
param
=
GetParameterByKey
(
"out"
);
OutputImageParameter
*
paramDown
=
dynamic_cast
<
OutputImageParameter
*>
(
param
);
std
::
string
origin_FileName
=
paramDown
->
GetFileName
();
// Check if FileName is extended (with the ? caracter)
// If not extended then override the FileName
if
(
origin_FileName
.
find
(
"?"
)
==
std
::
string
::
npos
&&
!
origin_FileName
.
empty
())
{
otbAppLogINFO
(
<<
"Streaming Size Value : "
<<
streamingSizeValue
);
std
::
string
extendedFileName
=
origin_FileName
;
// Construct the extendedPart
std
::
ostringstream
os
;
os
<<
"?&streaming:type=tiled&streaming:sizevalue="
<<
streamingSizeValue
;
// Add the extendedPart
std
::
string
extendedPart
=
os
.
str
();
extendedFileName
.
append
(
extendedPart
);
// Set the new FileName with extended options
SetParameterString
(
"out"
,
extendedFileName
);
}
// Main Output
// Main Output
SetParameterOutputImage
(
"out"
,
filterGroupedBy
->
GetOutput
());
SetParameterOutputImage
(
"out"
,
filterGroupedBy
->
GetOutput
());
}
}
...
...
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