Skip to content

Commit

Permalink
report: added --gt option to input external ground truth file. DBView…
Browse files Browse the repository at this point in the history
…er: fixed crash when unchecking "Ignore intermediate nodes".
  • Loading branch information
matlabbe committed Oct 28, 2023
1 parent 8da6ea1 commit 08d0ef7
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 91 deletions.
2 changes: 1 addition & 1 deletion corelib/src/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ bool importPoses(
else if(format == 1 || format==10 || format==11) // rgbd-slam format
{
std::list<std::string> strList = uSplit(str);
if((strList.size() == 8 && format!=11) || (strList.size() == 9 && format==11))
if((strList.size() >= 8 && format!=11) || (strList.size() == 9 && format==11))
{
double stamp = uStr2Double(strList.front());
strList.pop_front();
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/Link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cv::Mat Link::uncompressUserDataConst() const

Link Link::merge(const Link & link, Type outputType) const
{
UASSERT(to_ == link.from());
UASSERT_MSG(to_ == link.from(), uFormat("merging this=%d->%d to link=%d->%d", from_, to_, link.from(), link.to()).c_str());
UASSERT(outputType != Link::kUndef);
UASSERT((link.transform().isNull() && transform_.isNull()) || (!link.transform().isNull() && !transform_.isNull()));
UASSERT(infMatrix_.cols == 6 && infMatrix_.rows == 6 && infMatrix_.type() == CV_64FC1);
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/RegistrationVis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Transform RegistrationVis::computeTransformationImpl(
}
}

UDEBUG("Pprojected %d/%ld points inside %d cameras (time=%fs)",
UDEBUG("Projected %d/%ld points inside %d cameras (time=%fs)",
inFrame, cornersTo.size(), nCameras, t.ticks());
}
}
Expand Down
9 changes: 7 additions & 2 deletions guilib/src/DatabaseViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Loading

0 comments on commit 08d0ef7

Please sign in to comment.