[][src]Struct opencv::dnn::NormalizeBBoxLayer

pub struct NormalizeBBoxLayer { /* fields omitted */ }

inline formula - normalization layer.

Parameters

  • p: Normalization factor. The most common p = 1 for inline formula - normalization or p = 2 for inline formula - normalization or a custom one.
  • eps: Parameter inline formula to prevent a division by zero.
  • across_spatial: If true, normalize an input across all non-batch dimensions. Otherwise normalize an every channel separately.

Across spatial: @f[ norm = \sqrt[p]{\epsilon + \sum_{x, y, c} |src(x, y, c)|^p } \ dst(x, y, c) = \frac{ src(x, y, c) }{norm} @f]

Channel wise normalization: @f[ norm(c) = \sqrt[p]{\epsilon + \sum_{x, y} |src(x, y, c)|^p } \ dst(x, y, c) = \frac{ src(x, y, c) }{norm(c)} @f]

Where x, y - spatial coordinates, c - channel.

An every sample in the batch is normalized separately. Optionally, output is scaled by the trained parameters.

Methods

impl NormalizeBBoxLayer[src]

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

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

impl NormalizeBBoxLayer[src]

Trait Implementations

impl Algorithm for NormalizeBBoxLayer[src]

impl Layer for NormalizeBBoxLayer[src]

impl Drop for NormalizeBBoxLayer[src]

impl Send for NormalizeBBoxLayer[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> 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]