Struct image_convolution::Image[][src]

pub struct Image {
    pub data: Vec<Real>,
    pub width: u32,
    pub height: u32,
}

Row major image data

Fields

data: Vec<Real>width: u32height: u32

Implementations

impl Image[src]

pub fn new(width: u32, height: u32, value: Real) -> Self[src]

pub fn size(&self) -> u32[src]

pub fn load<P: AsRef<Path>>(filepath: &P) -> Image[src]

pub fn save<P: AsRef<Path>>(&self, filepath: P)[src]

Trait Implementations

impl Index<(u32, u32)> for Image[src]

type Output = Real

The returned type after indexing.

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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.

impl<T> Upcast<T> for T