Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/basalt/camera/double_sphere_camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class DoubleSphereCamera {
///
/// @param[in] p vector of intrinsic parameters [fx, fy, cx, cy, xi, alpha]
explicit DoubleSphereCamera(const VecN& p, int fov = 220, int width = 0, int height = 0)
: param_(p), fov_deg_(fov), width_(width), height_(height) {
: param_(p), width_(width), height_(height), fov_deg_(fov) {

updateR2max();

Expand Down
591 changes: 591 additions & 0 deletions include/basalt/camera/double_sphere_camera_symforce.hpp

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion include/basalt/camera/generic_camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <basalt/camera/pinhole_camera.hpp>
#include <basalt/camera/pinhole_radtan8_camera.hpp>
#include <basalt/camera/unified_camera.hpp>
#include <basalt/camera/double_sphere_camera_symforce.hpp>
#include <basalt/camera/triple_sphere_camera_symforce.hpp>

#include <variant>

Expand Down Expand Up @@ -76,7 +78,8 @@ class GenericCamera {
std::variant<ExtendedUnifiedCamera<Scalar>, DoubleSphereCamera<Scalar>,
KannalaBrandtCamera4<Scalar>, KannalaBrandtCamera18<Scalar>,
UnifiedCamera<Scalar>, PinholeCamera<Scalar>,
PinholeRadtan8Camera<Scalar>>;
PinholeRadtan8Camera<Scalar>, DoubleSphereCameraSymforce<Scalar>,
TripleSphereCameraSymforce<Scalar>>;

public:
/// @brief Cast to different scalar type
Expand Down
6 changes: 3 additions & 3 deletions include/basalt/camera/kannala_brandt_camera4.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class KannalaBrandtCamera4 {
/// @param[in] p vector of intrinsic parameters [fx, fy, cx, cy, k1, k2, k3,
/// k4]
explicit KannalaBrandtCamera4(const VecN& p, int fov = 220, int width = 0, int height = 0)
: param_(p), fov_deg_(fov), width_(width), height_(height) {
: param_(p), width_(width), height_(height), fov_deg_(fov) {

updateRmax();

Expand Down Expand Up @@ -654,8 +654,8 @@ inline void makeInBound(Vec2& proj) const{

Vec2 p2d;

bool success = project(p3d, p2d);
assert(success);
// bool success = project(p3d, p2d);
assert(project(p3d, p2d));

// initialise after the p2d, to skip image bound check

Expand Down
Loading