mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-06 01:57:45 +08:00
Preferences: Fixed xfeatures2d features not available without nonfree on OpenCV >= 3.4.2 (https://github.com/introlab/rtabmap_ros/issues/422)
This commit is contained in:
@@ -47,12 +47,25 @@ AboutDialog::AboutDialog(QWidget * parent) :
|
||||
version.append(" [DEMO]");
|
||||
#endif
|
||||
QString cv_version = CV_VERSION;
|
||||
#ifdef RTABMAP_NONFREE
|
||||
#if CV_MAJOR_VERSION < 3
|
||||
#ifdef RTABMAP_NONFREE
|
||||
cv_version.append(" [With nonfree]");
|
||||
_ui->label_opencv_license->setText("Not Commercial");
|
||||
#else
|
||||
#else
|
||||
cv_version.append(" [Without nonfree]");
|
||||
_ui->label_opencv_license->setText("BSD");
|
||||
#endif
|
||||
#elif defined(HAVE_OPENCV_XFEATURES2D)
|
||||
#ifdef RTABMAP_NONFREE
|
||||
cv_version.append(" [With xfeatures2d, nonfree]");
|
||||
_ui->label_opencv_license->setText("Not Commercial");
|
||||
#else
|
||||
cv_version.append(" [With xfeatures2d]");
|
||||
_ui->label_opencv_license->setText("BSD");
|
||||
#endif
|
||||
#else
|
||||
cv_version.append(" [Without xfeatures2d and nonfree]");
|
||||
_ui->label_opencv_license->setText("BSD");
|
||||
#endif
|
||||
_ui->label_version->setText(version);
|
||||
_ui->label_opencv_version->setText(cv_version);
|
||||
|
||||
Reference in New Issue
Block a user