[−][src]Struct opencv::dnn::LayerFactory
%Layer factory allows to create instances of registered layers.
Implementations
impl LayerFactory
[src]
pub fn as_raw_LayerFactory(&self) -> *const c_void
[src]
pub fn as_raw_mut_LayerFactory(&mut self) -> *mut c_void
[src]
impl LayerFactory
[src]
pub fn register_layer(
typ: &str,
constructor: LayerFactory_Constructor
) -> Result<()>
[src]
typ: &str,
constructor: LayerFactory_Constructor
) -> Result<()>
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]
typ: &str,
params: &mut LayerParams
) -> Result<Ptr<Layer>>
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]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for LayerFactory
[src]
impl LayerFactoryTrait for LayerFactory
[src]
fn as_raw_LayerFactory(&self) -> *const c_void
[src]
fn as_raw_mut_LayerFactory(&mut self) -> *mut c_void
[src]
impl Send for LayerFactory
[src]
Auto Trait Implementations
impl RefUnwindSafe for LayerFactory
impl !Sync for LayerFactory
impl Unpin for LayerFactory
impl UnwindSafe for LayerFactory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,