mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Added Depth information to ImageView's keypoint items
This commit is contained in:
@@ -270,13 +270,13 @@ void OdometryViewer::processData(const rtabmap::SensorData & data, const rtabmap
|
||||
{
|
||||
if(info.type == 0)
|
||||
{
|
||||
imageView_->setFeatures(info.words, Qt::yellow);
|
||||
imageView_->setFeatures(info.words, data.depth(), Qt::yellow);
|
||||
}
|
||||
else if(info.type == 1)
|
||||
{
|
||||
std::vector<cv::KeyPoint> kpts;
|
||||
cv::KeyPoint::convert(info.refCorners, kpts);
|
||||
imageView_->setFeatures(kpts, Qt::red);
|
||||
imageView_->setFeatures(kpts, data.depth(), Qt::red);
|
||||
}
|
||||
|
||||
imageView_->clearLines();
|
||||
|
||||
Reference in New Issue
Block a user