[SciPy-user] optimize.leastsq
Kfir Breger
kbreger at science.uva.nl
Tue Jul 25 06:56:15 EDT 2006
I am working on a camera calibration tool in python. In order to achive
taht i need to use a non linear least square fitting. I have a series of
3d points M and their counterpart 2d points m. I also have a first
estimation of the projection/rotation matrix H. so im trying to solve MH
= m. my fit fnction calculatse m_project (the value of the 2d point as
projected by H) then returns the square of m = m_project, it is clear to
see that minimizing this function will give the best H.
The problem is i cant get it to work. I get a value error about
something being nested to deep. any1 got an idea? is it at all posible
to use optimize.leastsq in this fashion?
Greatings
Kfir Breger
More information about the SciPy-User
mailing list