Enum show_image::tch::ColorFormat [−][src]
pub enum ColorFormat {
Rgb,
Bgr,
}
This is supported on crate feature
tch
only.Expand description
A preferred color format for guessing the pixel format of a tensor.
Variants
Interpret 3 or 4 channel tensors as RGB or RGBA.
Interpret 3 or 4 channel tensors as BGR or BGRA.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorFormat
impl Send for ColorFormat
impl Sync for ColorFormat
impl Unpin for ColorFormat
impl UnwindSafe for ColorFormat
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.