Skip to content

Commit

Permalink
make CameraIntrinsics easier to construct
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jun 19, 2020
1 parent bd7719f commit 3832f65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/surface_normal/base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ struct CameraIntrinsics {
float cx;
float cy;

CameraIntrinsics() = default;

CameraIntrinsics(float f, float cx, float cy) : f(f), cx(cx), cy(cy) {}

CameraIntrinsics(CameraIntrinsicsTuple t) {
f = std::get<0>(t);
cx = std::get<1>(t);
Expand Down

0 comments on commit 3832f65

Please sign in to comment.