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

pub struct DnnSuperResImpl { /* fields omitted */ }
Expand description

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

  • edsr
  • espcn
  • fsrcnn
  • lapsrn

Implementations

Empty constructor for python

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

Wrap the specified raw pointer Read more

Return an the underlying raw pointer while consuming this wrapper. Read more

Return the underlying raw pointer. Read more

Return the underlying mutable raw pointer Read more

Read the model from the given path Read more

Read the model from the given path Read more

Set desired model Read more

Set computation backend

Set computation target

Upsample via neural network Read more

Upsample via neural network of multiple outputs Read more

Returns the scale factor of the model: Read more

Returns the scale factor of the model: Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.