mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Gui: show graph color based on visual features
This commit is contained in:
@@ -822,7 +822,7 @@ void GraphViewer::updateMap(const cv::Mat & map8U, float resolution, float xMin,
|
||||
}
|
||||
}
|
||||
|
||||
void GraphViewer::updatePosterior(const std::map<int, float> & posterior)
|
||||
void GraphViewer::updatePosterior(const std::map<int, float> & posterior, float fixedMax)
|
||||
{
|
||||
//find max
|
||||
float max = 0.0f;
|
||||
@@ -835,6 +835,10 @@ void GraphViewer::updatePosterior(const std::map<int, float> & posterior)
|
||||
}
|
||||
if(max > 0.0f)
|
||||
{
|
||||
if(fixedMax > 0.0f && max < fixedMax)
|
||||
{
|
||||
max = fixedMax;
|
||||
}
|
||||
for(QMap<int, NodeItem*>::iterator iter = _nodeItems.begin(); iter!=_nodeItems.end(); ++iter)
|
||||
{
|
||||
std::map<int,float>::const_iterator jter = posterior.find(iter.key());
|
||||
|
||||
Reference in New Issue
Block a user