Open GoogleCodeExporter opened 9 years ago
Linking to the opencv_nonfree removes the undefined references
But it does not solve the "ambigious overload for ..."
Did you find a solution?
Specifically
Ubuntu 12.10, opencv2.4.4
/home/mikael/packages/fabmap/fabmap/samples/openFABMAPcli.cpp: In function
âint openFABMAP(std::string, of2::FabMap*, std::string, std::string, bool)â:
/home/mikael/packages/fabmap/fabmap/samples/openFABMAPcli.cpp:568:18: error:
ambiguous overload for âoperator=â in âconfusion_mat = 0â
/home/mikael/packages/fabmap/fabmap/samples/openFABMAPcli.cpp:568:18: note:
candidates are:
In file included from /usr/local/include/opencv2/core/core.hpp:4785:0,
from /usr/local/include/opencv2/opencv.hpp:47,
from /home/mikael/packages/fabmap/fabmap/samples/../include/openfabmap.hpp:38,
from /home/mikael/packages/fabmap/fabmap/samples/openFABMAPcli.cpp:30:
/usr/local/include/opencv2/core/mat.hpp:281:13: note: cv::Mat&
cv::Mat::operator=(const cv::Mat&)
In file included from /usr/local/include/opencv2/opencv.hpp:47:0,
from /home/mikael/packages/fabmap/fabmap/samples/../include/openfabmap.hpp:38,
from /home/mikael/packages/fabmap/fabmap/samples/openFABMAPcli.cpp:30:
/usr/local/include/opencv2/core/core.hpp:1767:10: note: cv::Mat&
cv::Mat::operator=(const Scalar&)
make[2]: *** [CMakeFiles/openFABMAPcli.dir/samples/openFABMAPcli.cpp.o] Error 1
make[1]: *** [CMakeFiles/openFABMAPcli.dir/all] Error 2
make: *** [all] Error 2
Original comment by Mikael.P...@gmail.com
on 4 Apr 2013 at 7:50
I got it working by changing
confusion_mat = 0; // init to 0's
to
confusion_mat = cv::Mat::zeros(testImageDescs.rows, testImageDescs.rows,
CV_64FC1);
in openFABMAPcli.cpp
Original comment by cyc3...@gmail.com
on 13 Aug 2013 at 7:54
Original issue reported on code.google.com by
a.norouz...@gmail.com
on 29 Sep 2012 at 6:29