[][src]Struct opencv::dnn::LayerParams

pub struct LayerParams { /* fields omitted */ }

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.

Methods

impl LayerParams[src]

pub fn as_raw_LayerParams(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl LayerParams[src]

pub fn blobs(&mut self) -> Result<VectorOfMat>[src]

List of learned parameters stored as blobs.

pub fn set_blobs(&mut self, val: VectorOfMat) -> Result<()>[src]

List of learned parameters stored as blobs.

pub fn name(&mut self) -> Result<String>[src]

Name of the layer instance (optional, can be used internal purposes).

pub fn set_name(&mut self, val: &str) -> Result<()>[src]

Name of the layer instance (optional, can be used internal purposes).

pub fn _type(&mut self) -> Result<String>[src]

Type name which was used for creating layer by layer factory (optional).

pub fn set_type(&mut self, val: &str) -> Result<()>[src]

Type name which was used for creating layer by layer factory (optional).

pub fn default() -> Result<LayerParams>[src]

Trait Implementations

impl DictTrait for LayerParams[src]

impl Send for LayerParams[src]

impl Drop for LayerParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]