Skip to main content

TransformExt

Trait TransformExt 

Source
pub trait TransformExt<T: Transform>
where Self: Sized,
{ type Output; // Required method fn transform( &self, transform: &T, output_size: Option<(usize, usize)>, ) -> Result<Self::Output, TransformError>; }

Required Associated Types§

Source

type Output

Output type for the operation

Required Methods§

Source

fn transform( &self, transform: &T, output_size: Option<(usize, usize)>, ) -> Result<Self::Output, TransformError>

Transforms an image given the transformation matrix and output size. Uses the source index coordinate space Assume nearest-neighbour interpolation

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, U, V> TransformExt<V> for ArrayBase<U, Ix3>
where T: Copy + Clone + Num + NumAssignOps, U: Data<Elem = T>, V: Transform,

Source§

type Output = ArrayBase<OwnedRepr<T>, Dim<[usize; 3]>>

Source§

fn transform( &self, transform: &V, output_size: Option<(usize, usize)>, ) -> Result<Self::Output, TransformError>

Implementors§

Source§

impl<T, U, C, V> TransformExt<V> for ImageBase<U, C>
where U: Data<Elem = T>, T: Copy + Clone + Num + NumAssignOps, C: ColourModel, V: Transform,