Class DnnSuperResImpl
- Namespace
- OpenCvSharp.DnnSuperres
- Assembly
- OpenCvSharp.dll
A class to upscale images via convolutional neural networks. The following four models are implemented:
- edsr
- espcn
- fsrcnn
- lapsrn
public class DnnSuperResImpl : CvObject, IDisposable
- Inheritance
-
DnnSuperResImpl
- Implements
- Inherited Members
Constructors
- DnnSuperResImpl()
Default constructor
- DnnSuperResImpl(nint)
Constructor (backward compatibility). Wraps the pointer in a non-owning SafeHandle. Derived classes that own the native resource should call SetSafeHandle(OpenCvSafeHandle) to replace it with an owning handle.
- DnnSuperResImpl(string, int)
Constructor which immediately sets the desired model
Methods
- GetAlgorithm()
Returns the scale factor of the model
- GetScale()
Returns the scale factor of the model
- ReadModel(string)
Read the model from the given path
- ReadModel(string, string)
Read the model from the given path
- SetModel(string, int)
Set desired model
- SetPreferableBackend(Backend)
Ask network to use specific computation backend where it supported.
- SetPreferableTarget(Target)
Ask network to make computations on specific target device.
- Upsample(InputArray, OutputArray)
Upsample via neural network
- UpsampleMultioutput(InputArray, out Mat[], IEnumerable<int>, IEnumerable<string>)
Upsample via neural network of multiple outputs