mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fixing some static analysis issues
This commit is contained in:
@@ -175,7 +175,7 @@ void upnp::estimate_R_and_t(double R[3][3], double t[3])
|
||||
pw0[j] /= number_of_correspondences;
|
||||
}
|
||||
|
||||
double abt[3 * 3], abt_d[3], abt_u[3 * 3], abt_v[3 * 3];
|
||||
double abt[3 * 3] = {0}, abt_d[3], abt_u[3 * 3], abt_v[3 * 3];
|
||||
Mat ABt = Mat(3, 3, CV_64F, abt);
|
||||
Mat ABt_D = Mat(3, 1, CV_64F, abt_d);
|
||||
Mat ABt_U = Mat(3, 3, CV_64F, abt_u);
|
||||
@@ -575,7 +575,7 @@ void upnp::gauss_newton(const Mat * L_6x12, const Mat * Rho, double betas[4], do
|
||||
{
|
||||
const int iterations_number = 50;
|
||||
|
||||
double a[6*4], b[6], x[4];
|
||||
double a[6*4], b[6], x[4] = {0};
|
||||
Mat * A = new Mat(6, 4, CV_64F, a);
|
||||
Mat * B = new Mat(6, 1, CV_64F, b);
|
||||
Mat * X = new Mat(4, 1, CV_64F, x);
|
||||
|
||||
Reference in New Issue
Block a user