Enum show_image::tch::TensorPixelFormat [−][src]
pub enum TensorPixelFormat {
Planar(PixelFormat),
Interlaced(PixelFormat),
Guess(ColorFormat),
}
This is supported on crate feature
tch
only.Expand description
The pixel format of a tensor, or a color format to guess the pixel format.
Variants
Planar(PixelFormat)
The tensor has planar pixel data.
Tuple Fields of Planar
0: PixelFormat
Interlaced(PixelFormat)
The tensor has interlaced pixel data.
Tuple Fields of Interlaced
0: PixelFormat
Guess(ColorFormat)
The library should guess if the pixel data is planar or interlaced.
Tuple Fields of Guess
0: ColorFormat
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TensorPixelFormat
impl Send for TensorPixelFormat
impl Sync for TensorPixelFormat
impl Unpin for TensorPixelFormat
impl UnwindSafe for TensorPixelFormat
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.