mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
ImageView: colormap not updated if depth cv image is not set
This commit is contained in:
@@ -718,6 +718,7 @@ void ImageView::contextMenuEvent(QContextMenuEvent * e)
|
|||||||
}
|
}
|
||||||
else if(action == _colorMapBlackToWhite || action == _colorMapWhiteToBlack || action == _colorMapRedToBlue || action == _colorMapBlueToRed)
|
else if(action == _colorMapBlackToWhite || action == _colorMapWhiteToBlack || action == _colorMapRedToBlue || action == _colorMapBlueToRed)
|
||||||
{
|
{
|
||||||
|
if(!_imageDepthCv.empty())
|
||||||
this->setImageDepth(_imageDepthCv);
|
this->setImageDepth(_imageDepthCv);
|
||||||
Q_EMIT configChanged();
|
Q_EMIT configChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user