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
sourceimpl LayerParams
impl LayerParams
Trait Implementations
sourceimpl Boxed for LayerParams
impl Boxed for LayerParams
sourceimpl DictTrait for LayerParams
impl DictTrait for LayerParams
fn as_raw_mut_Dict(&mut self) -> *mut c_void
sourceunsafe 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl DictTraitConst for LayerParams
impl DictTraitConst for LayerParams
sourceimpl Drop for LayerParams
impl Drop for LayerParams
sourceimpl From<LayerParams> for Dict
impl From<LayerParams> for Dict
sourcefn from(s: LayerParams) -> Self
fn from(s: LayerParams) -> Self
Converts to this type from the input type.
sourceimpl LayerParamsTrait for LayerParams
impl LayerParamsTrait for LayerParams
sourceimpl LayerParamsTraitConst for LayerParams
impl LayerParamsTraitConst for LayerParams
fn as_raw_LayerParams(&self) -> *const c_void
impl Send for LayerParams
Auto Trait Implementations
impl RefUnwindSafe for LayerParams
impl !Sync for LayerParams
impl Unpin for LayerParams
impl UnwindSafe for LayerParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more