mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed accumulated words bug in highest hypothesis view
This commit is contained in:
@@ -651,8 +651,7 @@ void ImageView::updateOpacity()
|
||||
|
||||
void ImageView::setFeatures(const std::multimap<int, cv::KeyPoint> & refWords, const cv::Mat & depth, const QColor & color)
|
||||
{
|
||||
qDeleteAll(_features);
|
||||
_features.clear();
|
||||
clearFeatures();
|
||||
|
||||
float xRatio = 0;
|
||||
float yRatio = 0;
|
||||
@@ -684,8 +683,7 @@ void ImageView::setFeatures(const std::multimap<int, cv::KeyPoint> & refWords, c
|
||||
|
||||
void ImageView::setFeatures(const std::vector<cv::KeyPoint> & features, const cv::Mat & depth, const QColor & color)
|
||||
{
|
||||
qDeleteAll(_features);
|
||||
_features.clear();
|
||||
clearFeatures();
|
||||
|
||||
float xRatio = 0;
|
||||
float yRatio = 0;
|
||||
@@ -901,11 +899,21 @@ void ImageView::clearLines()
|
||||
}
|
||||
}
|
||||
|
||||
void ImageView::clear()
|
||||
void ImageView::clearFeatures()
|
||||
{
|
||||
qDeleteAll(_features);
|
||||
_features.clear();
|
||||
|
||||
if(!_graphicsView->isVisible())
|
||||
{
|
||||
this->update();
|
||||
}
|
||||
}
|
||||
|
||||
void ImageView::clear()
|
||||
{
|
||||
clearFeatures();
|
||||
|
||||
qDeleteAll(_lines);
|
||||
_lines.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user