[][src]Struct opencv::dnn::LayerFactory

pub struct LayerFactory { /* fields omitted */ }

%Layer factory allows to create instances of registered layers.

Implementations

impl LayerFactory[src]

impl LayerFactory[src]

pub fn register_layer(
    typ: &str,
    constructor: LayerFactory_Constructor
) -> Result<()>
[src]

Registers the layer class with typename @p type and specified @p constructor. Thread-safe.

pub fn unregister_layer(typ: &str) -> Result<()>[src]

Unregisters registered layer with specified type name. Thread-safe.

pub fn create_layer_instance(
    typ: &str,
    params: &mut LayerParams
) -> Result<Ptr<Layer>>
[src]

Creates instance of registered layer.

Parameters

  • type: type name of creating layer.
  • params: parameters which will be used for layer initialization.

Note: Thread-safe.

Trait Implementations

impl Boxed for LayerFactory[src]

impl Drop for LayerFactory[src]

impl LayerFactoryTrait for LayerFactory[src]

impl Send for LayerFactory[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.