RegVis: fixed out-of-range vector error when guess is used and we match to projections. ImageView: Added right-click menu option to set a fixed size for features

This commit is contained in:
matlabbe
2017-12-18 14:38:54 -05:00
parent 6a50b3f149
commit d6058768fc
6 changed files with 52 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ public:
bool isFeaturesShown() const;
bool isLinesShown() const;
int getAlpha() const {return _alpha;}
int getFeaturesSize() const {return _featuresSize;}
bool isGraphicsViewMode() const;
bool isGraphicsViewScaled() const;
const QColor & getDefaultBackgroundColor() const;
@@ -86,6 +87,7 @@ public:
void setFeatureColor(int id, QColor color);
void setFeaturesColor(QColor color);
void setAlpha(int alpha);
void setFeaturesSize(int size);
void setSceneRect(const QRectF & rect);
const QMultiMap<int, rtabmap::KeypointItem *> & getFeatures() const {return _features;}
@@ -114,6 +116,7 @@ private:
private:
QString _savedFileName;
int _alpha;
int _featuresSize;
QColor _defaultBgColor;
QMenu * _menu;
@@ -123,6 +126,7 @@ private:
QAction * _showLines;
QAction * _saveImage;
QAction * _setAlpha;
QAction * _setFeaturesSize;
QAction * _graphicsViewMode;
QAction * _graphicsViewScaled;

View File

@@ -45,6 +45,7 @@ public:
virtual ~KeypointItem();
void setColor(const QColor & color);
const cv::KeyPoint & keypoint() const {return _kpt;}
protected:
virtual void hoverEnterEvent ( QGraphicsSceneHoverEvent * event );