SfM-Toy-Library
SfM-Toy-Library copied to clipboard
Problems installing
Hello i get this error while trying to install these libraries i hope you could helpme.
../SfM-Toy-Library-master/build$ make Scanning dependencies of target SfMToyLibrary [ 10%] Building CXX object SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfMCommon.cpp.o [ 20%] Building CXX object SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfM.cpp.o /.../SfM-Toy-Library-master/SfMToyLib/SfM.cpp: In member function ‘void sfmtoylib::SfM::saveCloudAndCamerasToPLY(const string&)’: /.../SfM-Toy-Library-master/SfMToyLib/SfM.cpp:636:18: error: variable ‘std::ofstream ofs’ has initializer but incomplete type ofstream ofs(prefix + "_points.ply"); ^ /home/rafaga/Escritorio/Gregorio/SfM-Toy-Library-master/SfMToyLib/SfM.cpp:668:19: error: variable ‘std::ofstream ofsc’ has initializer but incomplete type ofstream ofsc(prefix + "_cameras.ply"); ^ SfMToyLib/CMakeFiles/SfMToyLibrary.dir/build.make:86: 'SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfM.cpp.o' make[2]: *** [SfMToyLib/CMakeFiles/SfMToyLibrary.dir/SfM.cpp.o] Error 1 CMakeFiles/Makefile2:161: fallo en las instrucciones para el objetivo 'SfMToyLib/CMakeFiles/SfMToyLibrary.dir/all' make[1]: *** [SfMToyLib/CMakeFiles/SfMToyLibrary.dir/all] Error 2 Makefile:83: fallo en las instrucciones para el objetivo 'all' make: *** [all] Error 2
regards
Have you solved the problem? Now I face the same situation.
you may add a line: #include<fstream>
in the SfM.cpp and it will be fine.
@atangger tricks work form me
ubuntu16.04.5
ROS kinetic
also you will get BOOST version error
in SfmUnitTest.cpp raw 45 ' #define BOOST_TEST_EQUALS' modified BOOST_TEST to BOOST_TEST_MESSAGE
example #define BOOST_TEST_EQUALS(a, b, e) BOOST_TEST_MESSAGE((((a) == (b)) || (std::abs((a) - (b)) < e)))
then compile 100%
./build/SfMToyUI dataset/crazyhorse/
can run the demo but final result fail
visualize use meshlab
@YuehChuan hello,I am the same with you. And I change some other datasets, the result seems to be too sparse to recognize it, is there something wrong?
Excuse me, I am failed in that:
----------------- Extract Features -----------------
[ INFO:0] Initialize OpenCL runtime...
----------- Create Feature Match Matrix ------------
----------- Find Baseline Triangulation ------------
---------- Find Views Homography Inliers -----------
Ceres Solver Report: Iterations: 82, Initial cost: 1.616005e+01, Final cost: 1.412893e+01, Termination: CONVERGENCE
------------------ Add More Views ------------------
Ceres Solver Report: Iterations: 205, Initial cost: 1.561731e+02, Final cost: 1.426369e+01, Termination: CONVERGENCE
OpenCV Error: Assertion failed (src.isContinuous() && (src.depth() == 5 || src.depth() == 6) && ((src.rows == 1 && src.channels() == 2) || src.cols*src.channels() == 2)) in undistortPoints, file /home/duke/Downloads/opencv-3.4.0/modules/imgproc/src/undistort.cpp, line 492
terminate called after throwing an instance of 'cv::Exception'
what(): /home/duke/Downloads/opencv-3.4.0/modules/imgproc/src/undistort.cpp:492: error: (-215) src.isContinuous() && (src.depth() == 5 || src.depth() == 6) && ((src.rows == 1 && src.channels() == 2) || src.cols*src.channels() == 2) in function undistortPoints
Aborted (core dumped)
But I do not know why.
Hello,
i was able to get the demo running but i also got a very bad result. Did some one fixed it or have some ideas which settings in the ORB Detector can cause this problems?
Thanks in Advance