mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
GUI: Fixed current image and loop closure image features not shown when Mem/BinDataKept is false
This commit is contained in:
@@ -1595,6 +1595,26 @@ void MainWindow::processStats(const rtabmap::Statistics & stat)
|
|||||||
{
|
{
|
||||||
_ui->imageView_source->setImageDepth(depth);
|
_ui->imageView_source->setImageDepth(depth);
|
||||||
}
|
}
|
||||||
|
if(img.isNull() && depth.isNull())
|
||||||
|
{
|
||||||
|
QRect sceneRect;
|
||||||
|
if(signature.sensorData().cameraModels().size())
|
||||||
|
{
|
||||||
|
for(unsigned int i=0; i<signature.sensorData().cameraModels().size(); ++i)
|
||||||
|
{
|
||||||
|
sceneRect.setWidth(sceneRect.width()+signature.sensorData().cameraModels()[i].imageWidth());
|
||||||
|
sceneRect.setHeight(sceneRect.height()+signature.sensorData().cameraModels()[i].imageHeight());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(signature.sensorData().stereoCameraModel().isValidForProjection())
|
||||||
|
{
|
||||||
|
sceneRect.setRect(0,0,signature.sensorData().stereoCameraModel().left().imageWidth(), signature.sensorData().stereoCameraModel().left().imageHeight());
|
||||||
|
}
|
||||||
|
if(sceneRect.isValid())
|
||||||
|
{
|
||||||
|
_ui->imageView_source->setSceneRect(sceneRect);
|
||||||
|
}
|
||||||
|
}
|
||||||
if(!lcImg.isNull())
|
if(!lcImg.isNull())
|
||||||
{
|
{
|
||||||
_ui->imageView_loopClosure->setImage(lcImg);
|
_ui->imageView_loopClosure->setImage(lcImg);
|
||||||
|
|||||||
Reference in New Issue
Block a user