Struct opencv::dnn::LayerParams
source · pub struct LayerParams { /* private fields */ }
Expand description
This class provides all data needed to initialize layer.
It includes dictionary with scalar params (which can be read by using Dict interface), blob params #blobs and optional meta information: #name and #type of layer instance.
Implementations§
Trait Implementations§
source§impl Boxed for LayerParams
impl Boxed for LayerParams
source§impl DictTrait for LayerParams
impl DictTrait for LayerParams
fn as_raw_mut_Dict(&mut self) -> *mut c_void
source§unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
If the @p key in the dictionary then returns pointer to its value, else returns NULL.
source§fn set_str(&mut self, key: &str, value: &str) -> Result<String>
fn set_str(&mut self, key: &str, value: &str) -> Result<String>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set(&mut self, key: &str, value: &DictValue) -> Result<DictValue>
fn set(&mut self, key: &str, value: &DictValue) -> Result<DictValue>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§impl DictTraitConst for LayerParams
impl DictTraitConst for LayerParams
source§impl Drop for LayerParams
impl Drop for LayerParams
source§impl From<LayerParams> for Dict
impl From<LayerParams> for Dict
source§fn from(s: LayerParams) -> Self
fn from(s: LayerParams) -> Self
Converts to this type from the input type.