[][src]Struct opencv::dnn::SliceLayer

pub struct SliceLayer { /* fields omitted */ }

Slice layer has several modes:

  1. Caffe mode

Parameters

  • axis: Axis of split operation
  • slice_point: Array of split points

Number of output blobs equals to number of split points plus one. The first blob is a slice on input from 0 to @p slice_point[0] - 1 by @p axis, the second output blob is a slice of input from @p slice_point[0] to @p slice_point[1] - 1 by @p axis and the last output blob is a slice of input from @p slice_point[-1] up to the end of @p axis size.

  1. TensorFlow mode
  • begin: Vector of start indices
  • size: Vector of sizes

More convenient numpy-like slice. One and only output blob is a slice input[begin[0]:begin[0]+size[0], begin[1]:begin[1]+size[1], ...]

  1. Torch mode
  • axis: Axis of split operation

Split input blob on the equal parts by @p axis.

Methods

impl SliceLayer[src]

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

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

impl SliceLayer[src]

Trait Implementations

impl AlgorithmTrait for SliceLayer[src]

impl Drop for SliceLayer[src]

impl LayerTrait for SliceLayer[src]

impl Send for SliceLayer[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.