[][src]Struct seamcarving::Carved

pub struct Carved<'a, IMG: GenericImageView> { /* fields omitted */ }

An image with some vertical seams carved. If you want to save this image or otherwise manipulate it, you can convert it to a ImageBuffer.

Trait Implementations

impl<'a, IMG: GenericImageView> GenericImageView for Carved<'a, IMG> where
    <IMG as GenericImageView>::Pixel: 'a, 
[src]

type Pixel = IMG::Pixel

The type of pixel.

type InnerImageView = IMG::InnerImageView

Underlying image type. This is mainly used by SubImages in order to always have a reference to the original image. This allows for less indirections and it eases the use of nested SubImages. Read more

impl<'a, 'b, IMG: GenericImageView> Into<ImageBuffer<<IMG as GenericImageView>::Pixel, Vec<<<IMG as GenericImageView>::Pixel as Pixel>::Subpixel>>> for &'b Carved<'a, IMG> where
    <IMG as GenericImageView>::Pixel: 'static, 
[src]

fn into(
    self
) -> ImageBuffer<IMG::Pixel, Vec<<<IMG as GenericImageView>::Pixel as Pixel>::Subpixel>>
[src]

Creates a buffer storing the image modified image contents.

Creating the buffer is expensive, but accessing image data from a buffer is then faster than from Carved instance.

Auto Trait Implementations

impl<'a, IMG> RefUnwindSafe for Carved<'a, IMG> where
    IMG: RefUnwindSafe

impl<'a, IMG> Send for Carved<'a, IMG> where
    IMG: Sync

impl<'a, IMG> Sync for Carved<'a, IMG> where
    IMG: Sync

impl<'a, IMG> Unpin for Carved<'a, IMG>

impl<'a, IMG> UnwindSafe for Carved<'a, IMG> where
    IMG: RefUnwindSafe

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> SetParameter for T

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.