[−][src]Struct opencv::dnn::LayerParams
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]
fn as_raw_Dict(&self) -> *mut c_void
[src]
fn has(&self, key: &str) -> Result<bool>
[src]
unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
[src]
unsafe fn ptr(&self, key: &str) -> Result<DictValue>
[src]
fn get(&self, key: &str) -> Result<DictValue>
[src]
fn set(&mut self, key: &str, value: &mut DictValue) -> Result<DictValue>
[src]
fn erase(&mut self, key: &str) -> Result<()>
[src]
impl Send for LayerParams
[src]
impl Drop for LayerParams
[src]
Auto Trait Implementations
impl !Sync for LayerParams
impl Unpin for LayerParams
impl UnwindSafe for LayerParams
impl RefUnwindSafe for LayerParams
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,