[−][src]Struct seamcarving::Rotated
Represents an image with the x and y coordinates reversed.
In geometric terms, the operation is the combination of a 90° rotation and a symmetry along the Y axis.
This operation is idempotent: Rotated(Rotated(img)) = img
Trait Implementations
impl<'a, IMG: GenericImageView> GenericImageView for Rotated<'a, IMG>
[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
fn dimensions(&self) -> (u32, u32)
[src]
fn bounds(&self) -> (u32, u32, u32, u32)
[src]
fn get_pixel(&self, x: u32, y: u32) -> Self::Pixel
[src]
fn inner(&self) -> &Self::InnerImageView
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn in_bounds(&self, x: u32, y: u32) -> bool
[src]
unsafe fn unsafe_get_pixel(&self, x: u32, y: u32) -> Self::Pixel
[src]
fn pixels(&self) -> Pixels<Self>
[src]
fn view(
&self,
x: u32,
y: u32,
width: u32,
height: u32
) -> SubImage<&Self::InnerImageView>
[src]
&self,
x: u32,
y: u32,
width: u32,
height: u32
) -> SubImage<&Self::InnerImageView>
Auto Trait Implementations
impl<'a, IMG> RefUnwindSafe for Rotated<'a, IMG> where
IMG: RefUnwindSafe,
IMG: RefUnwindSafe,
impl<'a, IMG> Send for Rotated<'a, IMG> where
IMG: Sync,
IMG: Sync,
impl<'a, IMG> Sync for Rotated<'a, IMG> where
IMG: Sync,
IMG: Sync,
impl<'a, IMG> Unpin for Rotated<'a, IMG>
impl<'a, IMG> UnwindSafe for Rotated<'a, IMG> where
IMG: RefUnwindSafe,
IMG: RefUnwindSafe,
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,
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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.
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>,