Skip to content

Commit 8a44e71

Browse files
committed
Merge pull request opencv#19345 from Ryyyc:patch-1
2 parents d937907 + 109637e commit 8a44e71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/cpp/essential_mat_reconstr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void getPlanes (InputArray points3d_, std::vector<int> &labels, std::vect
8080
double xx = 0, yy = 0, zz = 0, xy = 0, xz = 0, yz = 0;
8181
for (int s : sample) {
8282
const double x_ = points[3*s] - c_x, y_ = points[3*s+1] - c_y, z_ = points[3*s+2] - c_z;
83-
xx += x_*x_; yy += y_*y_; zz += z_*z_; xy = x_*y_; yz += y_*z_; xz += x_*z_;
83+
xx += x_*x_; yy += y_*y_; zz += z_*z_; xy += x_*y_; yz += y_*z_; xz += x_*z_;
8484
}
8585
xx /= n; yy /= n; zz /= n; xy /= n; yz /= n; xz /= n;
8686
Vec3d weighted_normal(0,0,0);
@@ -339,4 +339,4 @@ int main(int args, char** argv) {
339339
imshow("image 1-2", image1);
340340
imwrite("planes.png", image1);
341341
waitKey(0);
342-
}
342+
}

0 commit comments

Comments
 (0)