mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Added Depth information to ImageView's keypoint items
This commit is contained in:
@@ -74,9 +74,9 @@ public:
|
||||
void setGraphicsViewScaled(bool scaled);
|
||||
void setBackgroundColor(const QColor & color);
|
||||
|
||||
void setFeatures(const std::multimap<int, cv::KeyPoint> & refWords, const QColor & color = Qt::yellow);
|
||||
void setFeatures(const std::vector<cv::KeyPoint> & features, const QColor & color = Qt::yellow);
|
||||
void addFeature(int id, const cv::KeyPoint & kpt, QColor color);
|
||||
void setFeatures(const std::multimap<int, cv::KeyPoint> & refWords, const cv::Mat & depth = cv::Mat(), const QColor & color = Qt::yellow);
|
||||
void setFeatures(const std::vector<cv::KeyPoint> & features, const cv::Mat & depth = cv::Mat(), const QColor & color = Qt::yellow);
|
||||
void addFeature(int id, const cv::KeyPoint & kpt, float depth, QColor color);
|
||||
void addLine(float x1, float y1, float x2, float y2, QColor color);
|
||||
void setImage(const QImage & image);
|
||||
void setImageDepth(const QImage & image);
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace rtabmap {
|
||||
class RTABMAPGUI_EXP KeypointItem : public QGraphicsEllipseItem
|
||||
{
|
||||
public:
|
||||
KeypointItem(int id, const cv::KeyPoint & kpt, const QColor & color = Qt::green, QGraphicsItem * parent = 0);
|
||||
KeypointItem(int id, const cv::KeyPoint & kpt, float depth = 0, const QColor & color = Qt::green, QGraphicsItem * parent = 0);
|
||||
virtual ~KeypointItem();
|
||||
|
||||
void setColor(const QColor & color);
|
||||
@@ -61,6 +61,7 @@ private:
|
||||
cv::KeyPoint _kpt;
|
||||
QGraphicsRectItem * _placeHolder;
|
||||
int _width;
|
||||
float _depth;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user