Open emilk opened 1 year ago
log_pinhole takes a focal_length_px argument and then directly converts it into a 3x3 matrix. Instead we should rewrite the Pinhole component as something similar to:
log_pinhole
focal_length_px
Pinhole
enum Pinhole { Matrix(PinholeMatrix), Params(PinholeParams) } struct PinholeMatrix { pub size: Vec2, pub child_from_parent: Mat3 } struct PinholeParams { pub size: Vec2, pub focal_length_px: Vec2, /// Default: center pub principal_point_px: Option<Vec2>, }
So we need some other design for this
log_pinhole
takes afocal_length_px
argument and then directly converts it into a 3x3 matrix. Instead we should rewrite thePinhole
component as something similar to: