visloc-core 0.4.0

Core geometry, camera, pose, frame, landmark, and visual-map types for visloc-rs.
Documentation
1
2
3
4
5
6
7
8
9
use crate::types::Camera;
use nalgebra::{Point2, Point3};

use super::Pose;

pub fn reproject(camera: &Camera, pose: &Pose, point_world: &Point3<f64>) -> Option<Point2<f64>> {
    let point_camera = pose.transform_world_point(point_world);
    camera.project(&point_camera)
}