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