Struct visioncortex::PerspectiveTransform [−][src]
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
impl RefUnwindSafe for PerspectiveTransform
impl Send for PerspectiveTransform
impl Sync for PerspectiveTransform
impl Unpin for PerspectiveTransform
impl UnwindSafe for PerspectiveTransform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,