Class cv::GArray#
cv::GArray<T> template class represents a list of objects of class T in the graph. View details
#include <opencv2/gapi/garray.hpp>Collaboration diagram for cv::GArray:
Detailed Description#
cv::GArray<T> template class represents a list of objects of class T in the graph.
cv::GArray<T> describes a functional relationship between operations consuming and producing arrays of objects of class T. The primary purpose of cv::GArray<T> is to represent a dynamic list of objects — where the size of the list is not known at the graph construction or compile time. Examples include: corner and feature detectors (cv::GArray<cv::Point>), object detection and tracking results (cv::GArray<cv::Rect>). Programmers can use their own types with cv::GArray<T> in the custom operations.
Similar to cv::GScalar, cv::GArray<T> may be value-initialized — in this case a graph-constant value is associated with the object.
GArray<T> is a virtual counterpart of std::vector<T>, which is usually used to represent the GArray<T> data in G-API during the execution.
See also
cv::GOpaque<T>
Member Typedef Documentation#
HT#
typedef typename detail::flatten_g< typename std::decay< T >::type >::type cv::GArray::HT
Constructor & Destructor Documentation#
GArray()#
cv::GArray::GArray()
Constructs an empty cv::GArray
Normally, empty G-API data objects denote a starting point of the graph. When an empty cv::GArray<T> is assigned to a result of some operation, it obtains a functional link to this operation (and is not empty anymore).
GArray()#
cv::GArray::GArray(const std::vector< HT > & v)
Constructs a value-initialized cv::GArray
cv::GArray<T> objects may have their values be associated at graph construction time. It is useful when some operation has a cv::GArray<T> input which doesn’t change during the program execution, and is set only once. In this case, there is no need to declare such cv::GArray<T> as a graph input.
Note
The value of cv::GArray<T> may be overwritten by assigning some other cv::GArray<T> to the object using operator= on the assignment, the old association or value is discarded.
Parameters
v— a std::vectorto associate with this cv::GArray<T>object. Vector data is copied into thecv::GArray<T>(no reference to the passed data is held).
GArray()#
cv::GArray::GArray(std::vector< HT > && v)
Constructs a value-initialized cv::GArray
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Parameters
v— a std::vectorto associate with this cv::GArray<T>object. Vector data is moved into thecv::GArray<T>.
GArray()#
cv::GArray::GArray(detail::GArrayU && ref)
Member Function Documentation#
putDetails()#
void cv::GArray::putDetails()
strip()#
detail::GArrayU cv::GArray::strip()
VCtor()#
static void cv::GArray::VCtor(detail::VectorRef & vref)
Member Data Documentation#
m_ref#
detail::GArrayU cv::GArray::m_ref
Source file#
The documentation for this class was generated from the following file:
opencv2/gapi/garray.hpp