Struct tfrecord::protos::summary::Image[][src]

pub struct Image {
    pub height: i32,
    pub width: i32,
    pub colorspace: i32,
    pub encoded_image_string: Vec<u8>,
}

Fields

height: i32

Dimensions of the image.

width: i32colorspace: i32

Valid colorspace values are 1 - grayscale 2 - grayscale + alpha 3 - RGB 4 - RGBA 5 - DIGITAL_YUV 6 - BGRA

encoded_image_string: Vec<u8>

Image data in encoded format. All image formats supported by image_codec::CoderUtil can be stored here.

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

impl Default for Image[src]

impl<'de> Deserialize<'de> for Image[src]

impl Message for Image[src]

impl PartialEq<Image> for Image[src]

impl Serialize for Image[src]

impl StructuralPartialEq for Image[src]

impl TryFrom<&'_ DynamicImage> for Image[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl<P, C> TryFrom<&'_ ImageBuffer<P, C>> for Image where
    P: 'static + Pixel<Subpixel = u8>,
    C: Deref<Target = [P::Subpixel]> + AsRef<[P::Subpixel]>, 
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<&'_ Tensor> for Image[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DynamicImage> for Image[src]

type Error = Error

The type returned in the event of a conversion error.

impl<B> TryFrom<FlatSamples<B>> for Image where
    B: AsRef<[u8]>, 
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Tensor> for Image[src]

type Error = Error

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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> 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>,