Namespaces | |
namespace | cv::gapi |
Classes | |
struct | cv::GArrayDesc |
struct | cv::GFrameDesc |
struct | cv::GMatDesc |
struct | cv::GOpaqueDesc |
struct | cv::GScalarDesc |
Detailed Description
Function Documentation
◆ GScalar() [1/4]
GAPI_WRAP cv::GScalar::GScalar | ( | ) |
#include <opencv2/gapi/gscalar.hpp>
Constructs an empty GScalar.
Normally, empty G-API data objects denote a starting point of the graph. When an empty GScalar is assigned to a result of some operation, it obtains a functional link to this operation (and is not empty anymore).
◆ GScalar() [2/4]
|
explicit |
#include <opencv2/gapi/gscalar.hpp>
Constructs a value-initialized GScalar.
In contrast with GMat (which can be either an explicit graph input or a result of some operation), GScalars may have their values be associated at graph construction time. It is useful when some operation has a GScalar input which doesn't change during the program execution, and is set only once. In this case, there is no need to declare such GScalar as a graph input.
- Note
- The value of GScalar may be overwritten by assigning some other GScalar to the object using
operator=
– on the assignment, the old GScalar value is discarded.
- Parameters
-
s a cv::Scalar value to associate with this GScalar object.
◆ GScalar() [3/4]
|
explicit |
#include <opencv2/gapi/gscalar.hpp>
Constructs a value-initialized GScalar.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters
-
s a cv::Scalar value to associate with this GScalar object.
◆ GScalar() [4/4]
cv::GScalar::GScalar | ( | double | v0 | ) |
#include <opencv2/gapi/gscalar.hpp>
Constructs a value-initialized GScalar.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters
-
v0 A double
value to associate with this GScalar. Note that only the first component of a four-component cv::Scalar is set to this value, with others remain zeros.
This constructor overload is not marked explicit
and can be used in G-API expression code like this:
Here operator+(GMat,GScalar) is used to wrap cv::gapi::addC() and a value-initialized GScalar is created on the fly.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ descr_of() [1/6]
#include <opencv2/gapi/gmat.hpp>
◆ descr_of() [2/6]
GScalarDesc cv::descr_of | ( | const cv::Scalar & | scalar | ) |
#include <opencv2/gapi/gscalar.hpp>
◆ descr_of() [3/6]
#include <opencv2/gapi/gmat.hpp>
◆ descr_of() [4/6]
#include <opencv2/gapi/gmat.hpp>
◆ descr_of() [5/6]
GArrayDesc cv::descr_of | ( | const std::vector< U > & | ) |
#include <opencv2/gapi/garray.hpp>
◆ descr_of() [6/6]
GOpaqueDesc cv::descr_of | ( | const U & | ) |
#include <opencv2/gapi/gopaque.hpp>
◆ empty_array_desc()
|
inline |
#include <opencv2/gapi/garray.hpp>
◆ empty_gframe_desc()
|
inlinestatic |
#include <opencv2/gapi/gframe.hpp>
◆ empty_gmat_desc()
|
inlinestatic |
#include <opencv2/gapi/gmat.hpp>
◆ empty_gopaque_desc()
|
inline |
#include <opencv2/gapi/gopaque.hpp>
◆ empty_scalar_desc()
|
inline |
#include <opencv2/gapi/gscalar.hpp>
◆ operator!=()
|
inline |
#include <opencv2/gapi/gscalar.hpp>
◆ operator<<()
std::ostream & cv::operator<< | ( | std::ostream & | os, |
const cv::GScalarDesc & | desc | ||
) |
#include <opencv2/gapi/gscalar.hpp>
◆ operator==()
|
inline |
#include <opencv2/gapi/gscalar.hpp>