Trait CameraModel

Source
pub trait CameraModel {
    type Projection: Bearing;

    // Required methods
    fn calibrate<P>(&self, point: P) -> Self::Projection
       where P: ImagePoint;
    fn uncalibrate(&self, projection: Self::Projection) -> KeyPoint;
}
Expand description

Allows conversion between the point on an image and the internal projection which can describe the bearing of the projection out of the camera.

Required Associated Types§

Required Methods§

Source

fn calibrate<P>(&self, point: P) -> Self::Projection
where P: ImagePoint,

Extracts a projection from a pixel location in an image.

Source

fn uncalibrate(&self, projection: Self::Projection) -> KeyPoint

Extracts the pixel location in the image from the projection.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§