-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run this repo #34
Comments
Excuse me, how to solve this problem? OpenCV(3.4.1) Error: Assertion failed (s >= 0) in setSize, file /home/lab316/cmake_libraries/opencv/opencv-3.4.1/modules/core/src/matrix.cpp, line 235 I have no idea. |
@li1997522 It seems like some error in your matrix, maybe you produce a negative value or out of range when processing data. |
@Luckykantnayak
|
@li1997522 I'm not able to build Opencv 3.x.x versions with Opencv-contrib from source code in ubuntu machine with CMake , getting so many errors with configuration incomplete message nor I can find any pre built binaries . It'll be very helpful if you can share some source on how to do it . I'll definitely try to run windows. For the 3rd point , I'm using the images shared by the authors of GSP and GES-GSP which they themselves tested , so I'm not sure why input image size will be inconsistent. |
@Luckykantnayak 1.You can find opencv file in https://opencv.org/releases/. |
@li1997522 I have tried with two images for opencv 4.8.0 version , it is working fine. The problem is more than 3 images . Thanks for sharing . Are you building with CMake ? I can share my CMakeList.txt file. |
|
@li1997522 I'm using same imagename_STITCH-GRAPH.txt file provided in the input-42-data folder by the author . By the way here is my C |
It is indeed the problem with image filename order , we have to sort it before using in the multi_image class, it works fine now for all the input-42 data sets . Thank you so much for pointing out the problem @li1997522 , you are a life saver :) . |
|
@Luckykantnayak I’m also find this problem too. But I forgot how to solve it. |
Hi @li1997522 , have you tried using any MATLAB solver in c++ code for solving the Ax =b instead of LeastSquaresConjugateGradient in the MeshOptimization code ? It is mentioned that MATLAB solvers are signficantly faster , how significant are they ? The LeastSquaresConjugateGradient solver takes around 45 sec for 35 images to solve for Ax = b without multithreading . Hope , you can give some advice on it . |
@Luckykantnayak Sorry I also saw this before. But I don't know how to use matlab solver in c++ code project. Maybe you can change c++ code project to matlab? Just try? And I just change the multithread number. I forgot it's help or not. |
@li1997522 thanks for your suggestion. Did you set any multithreading in eigen library, so that the LeastSquaresConjugateGradient<SparseMatrix > lscg solver can use it ? I'm not sure how to make it work . |
@Luckykantnayak . I have not set any multithreading in eigen library, I just try to change " Eigen::setNbThreads(8) ", Sorry. Wish you can find a way to make it fast. |
Change #include <eigen3/Eigen/SVD> #include <eigen3/Eigen/IterativeLinearSolvers> to #include "eigen3/Eigen/SVD" #include "eigen3/Eigen/IterativeLinearSolvers"
The text was updated successfully, but these errors were encountered: