Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
AgriSoilMoisture
Commits
06400cf9
Commit
06400cf9
authored
Jan 20, 2021
by
Lozac'h Loic
Browse files
Update otbInvertSARModel.cxx
parent
4cb587a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/otbInvertSARModel.cxx
View file @
06400cf9
...
...
@@ -197,9 +197,9 @@ private:
StatsFilterType
::
PixelValueMapType
validRatioMap
=
m_StatsFilter
->
GetValidPixelsRatioMap
();
// for (const auto& entry: meanValues)
std
::
cout
<<
"Id:105826152, value="
<<
meanValues
.
at
(
105826152
)
<<
std
::
endl
;
std
::
cout
<<
"Id:105826152, validratio="
<<
validRatioMap
.
at
(
105826152
)
<<
std
::
endl
;
std
::
cout
<<
"Id:105826152, pixparcelle="
<<
countValues
.
at
(
105826152
)
<<
std
::
endl
;
//
std::cout << "Id:105826152, value=" << meanValues.at(105826152) << std::endl;
//
std::cout << "Id:105826152, validratio=" << validRatioMap.at(105826152) << std::endl;
//
std::cout << "Id:105826152, pixparcelle=" << countValues.at(105826152) << std::endl;
// Put VV in dB
std
::
vector
<
long
>
wronglabels
;
...
...
@@ -207,7 +207,7 @@ private:
for
(
auto
&
entry
:
meanValues
)
{
double
nbsarpix
=
countValues
.
at
(
entry
.
first
)
*
validRatioMap
.
at
(
entry
.
first
)[
2
];
if
(
validRatioMap
.
at
(
entry
.
first
)[
2
]
<
0.
5
or
nbsarpix
<
20
or
entry
.
second
[
0
]
==
0
or
entry
.
second
[
1
]
==
0
or
entry
.
second
[
2
]
==
0
if
(
validRatioMap
.
at
(
entry
.
first
)[
2
]
<
0.
3
or
entry
.
second
[
0
]
==
0
or
entry
.
second
[
1
]
==
0
or
entry
.
second
[
2
]
==
0
or
isnan
(
entry
.
second
[
0
])
or
isnan
(
entry
.
second
[
1
])
or
isnan
(
entry
.
second
[
2
])){
wronglabels
.
push_back
(
entry
.
first
);
}
else
{
...
...
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