Struct tfrecord::protos::summary::Image [−][src]
Fields
height: i32
Dimensions of the image.
width: i32
colorspace: 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Message for Image
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<Image> for Image
[src]
impl Serialize for Image
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Image
[src]
impl TryFrom<&'_ DynamicImage> for Image
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &DynamicImage) -> Result<Self, Self::Error>
[src]
impl<B> TryFrom<&'_ FlatSamples<B>> for Image where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &FlatSamples<B>) -> Result<Self, Self::Error>
[src]
impl<P, C> TryFrom<&'_ ImageBuffer<P, C>> for Image where
P: 'static + Pixel<Subpixel = u8>,
C: Deref<Target = [P::Subpixel]> + AsRef<[P::Subpixel]>,
[src]
P: 'static + Pixel<Subpixel = u8>,
C: Deref<Target = [P::Subpixel]> + AsRef<[P::Subpixel]>,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &ImageBuffer<P, C>) -> Result<Self, Self::Error>
[src]
impl TryFrom<&'_ Tensor> for Image
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &Tensor) -> Result<Self, Self::Error>
[src]
impl TryFrom<DynamicImage> for Image
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: DynamicImage) -> Result<Self, Self::Error>
[src]
impl<B> TryFrom<FlatSamples<B>> for Image where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: FlatSamples<B>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Tensor> 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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,