Fixed build with OpencV 2.4 and Qt4

This commit is contained in:
matlabbe
2020-05-13 15:15:52 -04:00
parent 00695731fe
commit 55509c6c27
3 changed files with 6 additions and 6 deletions

View File

@@ -7321,8 +7321,8 @@ bool DatabaseViewer::addConstraint(int from, int to, bool silent)
""
"\n\nOtherwise, if "
"the database has images, it is recommended to use %2=2 instead so that "
"the guess can be found visually.")
.arg(Parameters::kRegStrategy().c_str()).arg(Parameters::kRegStrategy().c_str()),
"the guess can be found visually.")
.arg(Parameters::kRegStrategy().c_str()).arg(Parameters::kRegStrategy().c_str()),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::Yes) == QMessageBox::Yes)
{
@@ -7345,8 +7345,8 @@ bool DatabaseViewer::addConstraint(int from, int to, bool silent)
"transform for ICP guess? "
""
"\n\nOtherwise, if the database has images, it is recommended to use %2=2 "
"instead so that the guess can be found visually.")
.arg(Parameters::kRegStrategy().c_str()).arg(Parameters::kRegStrategy().c_str()),
"instead so that the guess can be found visually.")
.arg(Parameters::kRegStrategy().c_str()).arg(Parameters::kRegStrategy().c_str()),
QMessageBox::Yes | QMessageBox::Abort,
QMessageBox::Abort) == QMessageBox::Yes)
{

View File

@@ -48,6 +48,7 @@
#include <QtSvg/QSvgGenerator>
#endif
#include <cmath>
#include <limits>
#define PRINT_DEBUG 0