From 3d66cd88b8ba211e15f4f1abbfff0c4f79783ab2 Mon Sep 17 00:00:00 2001 From: David OK Date: Mon, 1 Aug 2022 18:17:28 +0100 Subject: [PATCH] MAINT: save work. --- .../Sara/ImageProcessing/Chessboard/SquareReconstruction.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpp/examples/Sara/ImageProcessing/Chessboard/SquareReconstruction.cpp b/cpp/examples/Sara/ImageProcessing/Chessboard/SquareReconstruction.cpp index 557c280d9..e89e87958 100644 --- a/cpp/examples/Sara/ImageProcessing/Chessboard/SquareReconstruction.cpp +++ b/cpp/examples/Sara/ImageProcessing/Chessboard/SquareReconstruction.cpp @@ -81,6 +81,9 @@ auto reconstruct_black_square_from_corner( auto det = -1.f; for (const auto& e: edges) { + if (e == edge) + continue; + auto rotation = Eigen::Matrix2f{}; rotation.col(0) = edge_grads[edge].normalized(); rotation.col(1) = edge_grads[e].normalized(); @@ -165,6 +168,8 @@ auto reconstruct_white_square_from_corner( auto det = 1.f; for (const auto& e: edges) { + if (e == edge) + continue; auto rotation = Eigen::Matrix2f{}; rotation.col(0) = edge_grads[edge].normalized(); rotation.col(1) = edge_grads[e].normalized();