OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
A class to upscale images via convolutional neural networks. The following four models are implemented: More...
Public Member Functions | |
string | getAlgorithm () |
Returns the scale factor of the model: | |
IntPtr | getNativeObjAddr () |
int | getScale () |
Returns the scale factor of the model: | |
void | readModel (string path) |
Read the model from the given path. | |
void | setModel (string algo, int scale) |
Set desired model. | |
void | setPreferableBackend (int backendId) |
Set computation backend. | |
void | setPreferableTarget (int targetId) |
Set computation target. | |
void | upsample (Mat img, Mat result) |
Upsample via neural network. | |
void | upsampleMultioutput (Mat img, List< Mat > imgs_new, MatOfInt scale_factors, List< string > node_names) |
Upsample via neural network of multiple outputs. | |
Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static DnnSuperResImpl | __fromPtr__ (IntPtr addr) |
static DnnSuperResImpl | create () |
Empty constructor for python. | |
Static Public Member Functions inherited from OpenCVForUnity.DisposableObject | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
A class to upscale images via convolutional neural networks. The following four models are implemented:
|
static |
|
static |
Empty constructor for python.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.DisposableOpenCVObject.
string OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.getAlgorithm | ( | ) |
Returns the scale factor of the model:
IntPtr OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.getNativeObjAddr | ( | ) |
int OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.getScale | ( | ) |
Returns the scale factor of the model:
void OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.readModel | ( | string | path | ) |
Read the model from the given path.
path | Path to the model file. |
void OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.setModel | ( | string | algo, |
int | scale ) |
Set desired model.
algo | String containing one of the desired models:
|
scale | Integer specifying the upscale factor |
void OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.setPreferableBackend | ( | int | backendId | ) |
Set computation backend.
void OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.setPreferableTarget | ( | int | targetId | ) |
Set computation target.
Upsample via neural network.
img | Image to upscale |
result | Destination upscaled image |
void OpenCVForUnity.Dnn_superresModule.DnnSuperResImpl.upsampleMultioutput | ( | Mat | img, |
List< Mat > | imgs_new, | ||
MatOfInt | scale_factors, | ||
List< string > | node_names ) |
Upsample via neural network of multiple outputs.
img | Image to upscale |
imgs_new | Destination upscaled images |
scale_factors | Scaling factors of the output nodes |
node_names | Names of the output nodes in the neural network |