[][src]Trait cv::TriangulatorProject

pub trait TriangulatorProject {
    fn triangulate_project<B>(
        &self,
        from: CameraPoint,
        onto: B,
        translation: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
    ) -> Option<f64>
    where
        B: Bearing
; }

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>(
    &self,
    from: CameraPoint,
    onto: B,
    translation: Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>
) -> Option<f64> where
    B: Bearing

Loading content...

Implementors

impl TriangulatorProject for BearingIntersectionTriangulator[src]

impl TriangulatorProject for BearingMinimizeReprojectionErrorTriangulator[src]

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

Loading content...