30 #include "ui_multiSessionLocSubView.h" 38 ui_ =
new Ui_multiSessionLocSubView();
50 const std::multimap<int, cv::KeyPoint> & features,
52 const QColor & bgColor)
56 ui_->imageView->clear();
60 ui_->imageView->setImage(image);
61 ui_->imageView->setFeatures(features, cv::Mat(),
ui_->imageView->getDefaultMatchingFeatureColor());
62 ui_->imageView->setBackgroundColor(bgColor);
64 ui_->label->setText(QString(
"%1 [%2]").arg(nodeId).arg(
mapId_));
65 ui_->locProgressBar->setValue(locRatio * 100);
70 ui_->imageView->clear();
71 ui_->label->setText(QString(
"[%1]").arg(
mapId_));
MultiSessionLocSubView(ImageView *mainView, int mapId, QWidget *parent=0)
Ui_multiSessionLocSubView * ui_
void updateView(int nodeId, const QImage &image, const std::multimap< int, cv::KeyPoint > &features, float locRatio, const QColor &bgColor)
virtual ~MultiSessionLocSubView()
int getFeaturesSize() const
const QColor & getDefaultMatchingFeatureColor() const
bool isFeaturesShown() const