[][src]Struct apriltag::image_buf::Image

pub struct Image { /* fields omitted */ }

The single-channel image with pixels in bytes.

Implementations

impl Image[src]

pub fn zeros_stride(width: usize, height: usize, stride: usize) -> Option<Self>[src]

Create an Image with zeros.

The stride must be more than or equal to width. Otherwise it returns None.

pub fn zeros_alignment(
    width: usize,
    height: usize,
    alignment: usize
) -> Option<Self>
[src]

Create an Image with zeros.

The alignment must be non-zero. Otherwise it returns None.

pub fn samples_iter<'a>(&'a self) -> SamplesIter<'a>[src]

Create an iterator that iterates over the pixels in row-major order.

pub fn width(&self) -> usize[src]

Get width.

pub fn height(&self) -> usize[src]

Get height.

pub fn stride(&self) -> usize[src]

Get stride.

Trait Implementations

impl AsMut<[u8]> for Image[src]

impl AsRef<[u8]> for Image[src]

impl Clone for Image[src]

impl Debug for Image[src]

impl Drop for Image[src]

impl<'_, Buffer> From<&'_ FlatSamples<Buffer>> for Image where
    Buffer: AsRef<[u8]>, 
[src]

impl<'_> From<&'_ Image> for MatrixMN<u8, Dynamic, Dynamic>[src]

impl<'_> From<&'_ Image> for FlatSamples<Vec<u8>>[src]

impl<'_> From<&'_ Image> for ImageBuffer<Luma<u8>, Vec<u8>>[src]

impl<'_, Container> From<&'_ ImageBuffer<Luma<u8>, Container>> for Image where
    Container: Deref<Target = [u8]>, 
[src]

impl<'_, R, C, S> From<&'_ Matrix<u8, R, C, S>> for Image where
    R: Dim,
    C: Dim,
    S: Storage<u8, R, C>, 
[src]

impl<Buffer> From<FlatSamples<Buffer>> for Image where
    Buffer: AsRef<[u8]>, 
[src]

impl From<Image> for MatrixMN<u8, Dynamic, Dynamic>[src]

impl From<Image> for FlatSamples<Vec<u8>>[src]

impl From<Image> for ImageBuffer<Luma<u8>, Vec<u8>>[src]

impl<Container> From<ImageBuffer<Luma<u8>, Container>> for Image where
    Container: Deref<Target = [u8]>, 
[src]

impl<R, C, S> From<Matrix<u8, R, C, S>> for Image where
    R: Dim,
    C: Dim,
    S: Storage<u8, R, C>, 
[src]

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

type Output = u8

The returned type after indexing.

impl IndexMut<(usize, usize)> for Image[src]

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,