[][src]Trait cv_core::TriangulatorProject

pub trait TriangulatorProject {
    fn triangulate_project<B: Bearing>(
        &self,
        from: CameraPoint,
        onto: B,
        translation: Vector3<f64>
    ) -> Option<f64>; }

This trait allows you to project the point a onto the bearing b by only scaling a translation vector t. The returned value is the amout to scale t by to achieve the triangulation. All inputs share the same origin (optical center). Below is a visualization of the problem.

  • t the translation vector that needs to be scaled
  • a the source point which is relative to the camera (see CameraPoint)
  • b the destination bearing
  • O the optical center
  • @ the virtual image plane
     t<---a
   ^     /
   |    /
@@@b@@@/@@@@@
   |  /
   | /
   |/
   O

Required methods

fn triangulate_project<B: Bearing>(
    &self,
    from: CameraPoint,
    onto: B,
    translation: Vector3<f64>
) -> Option<f64>

Loading content...

Implementors

impl<T> TriangulatorProject for T where
    T: TriangulatorRelative
[src]

Loading content...