Skip to content

Commit

Permalink
ENH: add calibration program for the pinhole camera model alongside with
Browse files Browse the repository at this point in the history
code improvements.
  • Loading branch information
oddkiva committed May 27, 2024
1 parent 9a8eb92 commit ef64698
Show file tree
Hide file tree
Showing 5 changed files with 550 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ inline auto inspect(sara::ImageView<sara::Rgb8>& image, //
{
for (auto x = 0; x < chessboard.width(); ++x)
{
auto P = Eigen::Vector3d{};
P << chessboard.scene_point(x, y).cast<double>(), 0;
Eigen::Vector3d P = chessboard.scene_point(x, y).cast<double>();
P = R * P + t;

const Eigen::Vector2f p1 = chessboard.image_point(x, y);
Expand Down
Loading

0 comments on commit ef64698

Please sign in to comment.