Skip to content

Commit

Permalink
STY: more readable matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
oddkiva committed May 23, 2024
1 parent cb9e09c commit f7d08af
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions cpp/examples/Sara/MultiViewGeometry/metric_birds_eye_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ auto make_make_conrady_camera_1()

auto camera_parameters = sara::BrownConradyCamera32<float>{};
camera_parameters.image_sizes << 1920, 1080;
camera_parameters.K << f, 0, u0, 0, f, v0, 0, 0, 1;
// clang-format off
camera_parameters.K <<
f, 0, u0,
0, f, v0,
0, 0, 1;
// clang-format on
camera_parameters.distortion_model.k = k;
camera_parameters.distortion_model.p = p;

Expand All @@ -128,7 +133,12 @@ auto make_make_conrady_camera_2()

auto camera_parameters = sara::BrownConradyCamera32<float>{};
camera_parameters.image_sizes << 1920, 1080;
camera_parameters.K << f, 0, u0, 0, f, v0, 0, 0, 1;
// clang-format off
camera_parameters.K <<
f, 0, u0,
0, f, v0,
0, 0, 1;
// clang-format on
camera_parameters.distortion_model.k = k;
camera_parameters.distortion_model.p = p;

Expand All @@ -142,7 +152,12 @@ auto make_make_conrady_camera_3()
const auto v0 = 360._px;

auto camera_parameters = sara::BrownConradyCamera32<float>{};
camera_parameters.K << f, 0, u0, 0, f, v0, 0, 0, 1;
// clang-format off
camera_parameters.K <<
f, 0, u0,
0, f, v0,
0, 0, 1;
// clang-format on
camera_parameters.distortion_model.k.setZero();
camera_parameters.distortion_model.p.setZero();

Expand Down

0 comments on commit f7d08af

Please sign in to comment.