report: added --gt option to input external ground truth file. DBViewer: fixed crash when unchecking "Ignore intermediate nodes".

This commit is contained in:
matlabbe
2023-10-27 17:10:10 -07:00
parent 8da6ea1707
commit 08d0ef7408
5 changed files with 279 additions and 111 deletions

View File

@@ -7473,12 +7473,17 @@ void DatabaseViewer::updateGraphView()
while(uContains(weights_, link.to()) && weights_.at(link.to()) < 0)
{
std::multimap<int, Link>::iterator uter = links.find(link.to());
while(uter != links.end() &&
uter->first==link.to() &&
uter->second.from()>uter->second.to())
{
++uter;
}
if(uter != links.end())
{
UASSERT(links.count(link.to()) == 1);
poses.erase(link.to());
link = link.merge(uter->second, uter->second.type());
links.erase(uter);
links.erase(uter->first);
}
else
{