[][src]Struct opencv::dnn_superres::DnnSuperResImpl

pub struct DnnSuperResImpl { /* fields omitted */ }

A class to upscale images via convolutional neural networks. The following four models are implemented:

  • edsr
  • espcn
  • fsrcnn
  • lapsrn

Implementations

impl DnnSuperResImpl[src]

impl DnnSuperResImpl[src]

pub fn create() -> Result<Ptr<DnnSuperResImpl>>[src]

Empty constructor for python

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

pub fn new(algo: &str, scale: i32) -> Result<DnnSuperResImpl>[src]

Constructor which immediately sets the desired model

Parameters

  • algo: String containing one of the desired models:
    • edsr
    • espcn
    • fsrcnn
    • lapsrn
  • scale: Integer specifying the upscale factor

Trait Implementations

impl Boxed for DnnSuperResImpl[src]

impl DnnSuperResImplTrait for DnnSuperResImpl[src]

impl Drop for DnnSuperResImpl[src]

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