hi, new to this list, but using sage for some time. I have a function E(Xc,Yc,Zc) which calculates the squared distance of camera center 3d coordinates (as per paint-brush laser scanner by Zagorchev &Goshtasby). I have the partial derivatives of E Xy Yc and Zc which are set to zero. My problem is that the function is very long, using real measured 3d coordinates in the double frame. My code is in c++ using OpenCV. I'd like to use cvSolve to calculate the 3d camera coordinates, but writing the A matrix and b vector by hand is very tedious and prone to typos, so using sage to set up the matrix would be ideal. I've googled and searched the sage documentation, but not finding an easy way to do this. Even getting the variables to left- hand side and the constants to right-hand side would help a lot. I know nearly nothing about python, but I think it should be able to write a function which outputs directly code for OpenCV. Are there any sage functions to simplify the process?
thanks -matti -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
