pub enum ImageLayout {
Nchw,
Nhwc,
Chw,
Hwc,
Hw,
}Expand description
Axis order carried by an Image.
Variants§
Nchw
Batched channel-first layout: [batch, channels, height, width].
Nhwc
Batched channel-last layout: [batch, height, width, channels].
Chw
Unbatched channel-first layout: [channels, height, width].
Hwc
Unbatched channel-last layout: [height, width, channels].
Hw
Unbatched single-channel layout: [height, width].
Implementations§
Trait Implementations§
Source§impl Clone for ImageLayout
impl Clone for ImageLayout
impl Copy for ImageLayout
Source§impl Debug for ImageLayout
impl Debug for ImageLayout
impl Eq for ImageLayout
Source§impl PartialEq for ImageLayout
impl PartialEq for ImageLayout
impl StructuralPartialEq for ImageLayout
Auto Trait Implementations§
impl Forget for ImageLayout
impl Freeze for ImageLayout
impl Move for ImageLayout
impl RefUnwindSafe for ImageLayout
impl Send for ImageLayout
impl Sync for ImageLayout
impl Unpin for ImageLayout
impl UnsafeUnpin for ImageLayout
impl UnwindSafe for ImageLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more