Commit 06400cf9 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

Update otbInvertSARModel.cxx

parent 4cb587a9
......@@ -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{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment