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§
type Projection: Bearing
Required Methods§
Sourcefn calibrate<P>(&self, point: P) -> Self::Projectionwhere
P: ImagePoint,
fn calibrate<P>(&self, point: P) -> Self::Projectionwhere
P: ImagePoint,
Extracts a projection from a pixel location in an image.
Sourcefn uncalibrate(&self, projection: Self::Projection) -> KeyPoint
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.