ocam iteration problem

367 views
Skip to first unread message

Yunus Emre Gedik

unread,
Jul 4, 2018, 7:07:32 AM7/4/18
to OCamCalib Toolbox
Hi david and everyone , I have a problem.Calculation of the center point is taking too long. What could be the reason for this.








My camera EKEN H9R PHOTO İNFO 

Darren Xu

unread,
Sep 10, 2018, 7:35:10 AM9/10/18
to OCamCalib Toolbox
In my test, the function lsqlin has a issue which calibrate.m uses in Matlab 2017b and later.
There has no problem in Matlab 2016a. (I didn't test in Matlab 2016b and 2017a).
You should install Matlab 2016a to run the calib program.

在 2018年7月4日星期三 UTC+8下午7:07:32,Yunus Emre Gedik写道:

mythc

unread,
Sep 20, 2018, 1:00:39 AM9/20/18
to OCamCalib Toolbox
There was a change in lsqlin function of Matlab2017b.
Simply converting matrix to sparse format will solve your problem.

https://jp.mathworks.com/matlabcentral/answers/319775-why-is-the-lsqlin-interior-point-algorithm-slower-in-r2017a-compared-to-r2016b

Keunwoo Park

unread,
Apr 15, 2019, 12:48:23 AM4/15/19
to OCamCalib Toolbox
Thanks for the great information. It really helped me to understand what is happening in the code.
However, could you tell me which part of the code should be fixed?

2018년 9월 20일 목요일 오후 2시 0분 39초 UTC+9, mythc 님의 말:

Keunwoo Park

unread,
Apr 15, 2019, 1:31:00 AM4/15/19
to OCamCalib Toolbox
Ok. I found where to fix. I'll post my solution for others.

If you see the findcenter.m file, you can see that it uses calibrate.m function.
In the calibrate.m there are two places where 'lsqlin' is used (line 208, line 274). 
In the link mythc posted, the easy workaround is to change the first matrix to sparse, which is PP in the code.
If you change PP to sparse(PP) then the function runs very fast.


2019년 4월 15일 월요일 오후 1시 48분 23초 UTC+9, Keunwoo Park 님의 말:
Message has been deleted

yongjie...@gmail.com

unread,
Aug 13, 2019, 5:01:32 AM8/13/19
to OCamCalib Toolbox
matlab2016b is ok with me


在 2018年7月4日星期三 UTC+8下午7:07:32,Yunus Emre Gedik写道:
Hi david and everyone , I have a problem.Calculation of the center point is taking too long. What could be the reason for this.

Maria Ferreira

unread,
May 11, 2022, 7:06:39 AM5/11/22
to OCamCalib Toolbox
Thank you! This was super helpful :)
Reply all
Reply to author
Forward
0 new messages