[][src]Struct opencv::dnn::Layer

pub struct Layer { /* fields omitted */ }

This interface class allows to build new Layers - are building blocks of networks.

Each class, derived from Layer, must implement allocate() methods to declare own outputs and forward() to compute outputs. Also before using the new layer into networks you must register your layer by using one of @ref dnnLayerFactory "LayerFactory" macros.

Methods

impl Layer[src]

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

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

impl Layer[src]

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

pub fn new(params: &LayerParams) -> Result<Layer>[src]

Initializes only #name, #type and #blobs fields.

Trait Implementations

impl AlgorithmTrait for Layer[src]

impl LayerTrait for Layer[src]

impl Send for Layer[src]

impl Drop for Layer[src]

Auto Trait Implementations

impl Unpin for Layer

impl !Sync for Layer

impl UnwindSafe for Layer

impl RefUnwindSafe for Layer

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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