How can I use LMSolver to solve a non linear system?

asked 2015-07-13 10:11:04 -0500

LBerger gravatar image

Hi,

I need to solve a non-linear system for image processing in opencv. I have found that in file modules\calib3d\src\fundam.cpp there is a code using LMSolver (define in code modules\calib3d\src\precomp.hpp). System can be solved using Levenberg-Marquardt if class LMSolverImpl defined in levmarq.cpp.

Now I don't know how to include all this in my own file. So I have choose an another way which is not very nice but it seems working. It is in this file.

Is it possible to do samething without copy class LMSolver, LMSolverImpl in my own files?

Thanks for you answer.

edit retag flag offensive close merge delete

Comments

it seems LMSolver class is not available even though CV_EXPORTS. i think it should be moved in a proper hpp

sturkmen gravatar imagesturkmen ( 2018-01-04 19:18:10 -0500 )edit

Do you know where exactly they moved LMSolver class? @sturkmen

Kanat gravatar imageKanat ( 2018-02-27 02:36:22 -0500 )edit
1

"I have found that in file modules\calib3d\src\fundam.cpp there is a code using LMSolver (define in code modules\calib3d\src\precomp.hpp)." it is in the question

sturkmen gravatar imagesturkmen ( 2018-02-27 03:41:44 -0500 )edit