pub struct GpuVisionChainOptions {
pub width: u32,
pub height: u32,
pub blur_kernel: u32,
pub morphology_kernel: u32,
pub morphology: GpuMorphology,
pub scale: f32,
pub mean: [f32; 4],
pub std: [f32; 4],
}Expand description
Configuration for the resident resize-to-AI chain.
Fields§
§width: u32Resize output width.
height: u32Resize output height.
blur_kernel: u32Odd box-blur kernel size.
morphology_kernel: u32Odd morphology kernel size.
morphology: GpuMorphologyMorphology operation after Sobel.
scale: f32Input-value scale for AI packing.
mean: [f32; 4]Per-channel means.
std: [f32; 4]Per-channel standard deviations.
Trait Implementations§
Source§impl Clone for GpuVisionChainOptions
impl Clone for GpuVisionChainOptions
Source§fn clone(&self) -> GpuVisionChainOptions
fn clone(&self) -> GpuVisionChainOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuVisionChainOptions
impl Debug for GpuVisionChainOptions
Source§impl Default for GpuVisionChainOptions
impl Default for GpuVisionChainOptions
Source§impl PartialEq for GpuVisionChainOptions
impl PartialEq for GpuVisionChainOptions
Source§fn eq(&self, other: &GpuVisionChainOptions) -> bool
fn eq(&self, other: &GpuVisionChainOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GpuVisionChainOptions
impl StructuralPartialEq for GpuVisionChainOptions
Auto Trait Implementations§
impl Freeze for GpuVisionChainOptions
impl RefUnwindSafe for GpuVisionChainOptions
impl Send for GpuVisionChainOptions
impl Sync for GpuVisionChainOptions
impl Unpin for GpuVisionChainOptions
impl UnsafeUnpin for GpuVisionChainOptions
impl UnwindSafe for GpuVisionChainOptions
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