5
#ifndef _OPENCV_DNN_SUPERRES_HPP_
6
#define _OPENCV_DNN_SUPERRES_HPP_
20
#include "opencv2/core.hpp"
21
#include "opencv2/dnn.hpp"
25
namespace
dnn_superres
52
void
reconstruct_YCrCb(InputArray inpImg, InputArray origImg,
OutputArray
outpImg,
int
scale);
54
void
preprocess_YCrCb(InputArray inpImg,
OutputArray
outpImg);
79
CV_WRAP
void
readModel(
const
String& path);
85
void
readModel(
const
String& weights,
const
String& definition);
95
CV_WRAP
void
setModel(
const
String& algo,
int
scale);
99
CV_WRAP
void
setPreferableBackend(
int
backendId);
103
CV_WRAP
void
setPreferableTarget(
int
targetId);
117
CV_WRAP
void
upsampleMultioutput(InputArray img, std::vector<Mat> &imgs_new,
const
std::vector<int>& scale_factors,
const
std::vector<String>& node_names);
122
CV_WRAP
int
getScale();
127
CV_WRAP String getAlgorithm();
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition:
mat.hpp:295
This class allows to create and manipulate comprehensive artificial neural networks.
Definition:
dnn/dnn.hpp:407
A class to upscale images via convolutional neural networks. The following four models are implemente...
Definition:
dnn_superres.hpp:41
void readModel(const String &weights, const String &definition)
Read the model from the given path
DnnSuperResImpl(const String &algo, int scale)
Constructor which immediately sets the desired model
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
cvstd_wrapper.hpp:74