Trait PaddingExt

Source
pub trait PaddingExt<T> {
    type Output;

    // Required method
    fn pad(
        &self,
        padding: (usize, usize),
        strategy: &dyn PaddingStrategy<T>,
    ) -> Self::Output;
}
Expand description

Padding extension for images

Required Associated Types§

Source

type Output

Type of the output image

Required Methods§

Source

fn pad( &self, padding: (usize, usize), strategy: &dyn PaddingStrategy<T>, ) -> Self::Output

Pad the object with the given padding and strategy

Implementations on Foreign Types§

Source§

impl<T, U> PaddingExt<T> for ArrayBase<U, Ix3>
where U: Data<Elem = T>, T: Copy,

Source§

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

Source§

fn pad( &self, padding: (usize, usize), strategy: &dyn PaddingStrategy<T>, ) -> Self::Output

Implementors§

Source§

impl<T, U, C> PaddingExt<T> for ImageBase<U, C>
where U: Data<Elem = T>, T: Copy, C: ColourModel,