Realm

oa::video::VideoMatrixConfig

Conversion parameters for to_matrix.

StRust public API

Declaration

pub struct VideoMatrixConfig { pub channels: MatrixChannels, pub layout: ImageLayout, pub crop: Option<VideoRegion>, pub size: Option<(u32, u32)>, pub resize: VideoResize, pub interpolation: VideoInterpolation, pub mean: [f32; 3], pub std: [f32; 3], pub unspecified_color: VideoColorInfo, }
Public Rust declaration.

Public Methods

fn clone(&self) -> VideoMatrixConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &VideoMatrixConfig) -> bool

Associated Functions

pub fn imagenet() -> Self
fn default() -> Self

Public Data Members

channelsMatrixChannelsfield
layoutImageLayoutfield
cropOption<VideoRegion>field
sizeOption<(u32, u32)>field
resizeVideoResizefield
interpolationVideoInterpolationfield
mean[f32; 3]field
std[f32; 3]field
unspecified_colorVideoColorInfofield

Public Method Documentation

fn clone( &self ) -> VideoMatrixConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &VideoMatrixConfig ) -> bool
No public source comment is attached to this declaration.
pub fn imagenet() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.