Optimize parameters of transformations#
For each optimization process, the following functions are available:
gn: Gauss-Newton optimization solving directly \(\mathbf{J}^T \mathbf{J} \Delta = -\mathbf{J}^T \mathbf{r}\) without damping, scaling or boundary constraints.trf: Trust Region Reflective optimization usingscipy.optimize.least_squareswith scaling and boundary constraints.lm: Levenberg-Marquardt optimization usingscipy.optimize.least_squareswithout scaling and boundary constraints.
Optimize the parameters of a unique transformation#
Lets consider a pycvcam.Transform object and a set of input and output points.
The following functions optimize the parameters of the transformation to minimize the reprojection error between the input and output points.
|
Optimize the |
|
Optimize the |
|
Optimize the |
Optimize the parameters of a camera transformation#
Lets consider a pycvcam.Intrinsic object, a pycvcam.Distortion object, a pycvcam.Extrinsic object and a set of input and output points.
The following functions optimize the parameters of the camera transformation to minimize the reprojection error between the input and output points.
|
Optimize the parameters of the intrinsic, distortion, and extrinsic transformations of a camera model such that the projection of the world points matches the image points using a Gauss-Newton optimization method. |
|
Optimize the parameters of the intrinsic, distortion, and extrinsic transformations of a camera model such that the projection of the world points matches the image points using the |
|
Optimize the parameters of the intrinsic, distortion, and extrinsic transformations of a camera model such that the projection of the world points matches the image points using the |
Optimize the parameters of chains of transformations#
Lets \((T_0, T_1, ..., T_{N_T-1})\) be a tuple of \(N_T\) Transform objects, and \((C_0, C_1, ..., C_{N_C-1})\) be a tuple of \(N_C\) chains of transformations.
A chain \(C_i\) is defined as a tuple of indices corresponding to thetransformations in the chain. For example:
C_0 = (1, 4, 8) -----> C_0(X) = T_8 ∘ T_4 ∘ T_1(X)
The objective is to optimize the parameters of the transformations to minimize the reprojection error between the input and output points of all the chains.
|
Optimize several |
|
Optimize several |
|
Optimize several |