Struct visioncortex::PerspectiveTransform[][src]

pub struct PerspectiveTransform { /* fields omitted */ }

A perspective transform can easily be used to map one 2D quadrilateral to another, given the corner coordinates for the source and destination quadrilaterals.

Adapted from https://github.com/jlouthan/perspective-transform

Implementations

impl PerspectiveTransform[src]

pub fn from_point_f64(src_pts: &[PointF64], dst_pts: &[PointF64]) -> Self[src]

pub fn new(src_pts: Vec<f64>, dst_pts: Vec<f64>) -> PerspectiveTransform[src]

pub fn default() -> PerspectiveTransform[src]

pub fn transform(&self, point: PointF64) -> PointF64[src]

pub fn transform_inverse(&self, point: PointF64) -> PointF64[src]

pub fn print_coeffs(&self) -> String[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.