mirror of
https://github.com/opencv/opencv.git
synced 2026-12-03 13:40:40 -06:00
Merge pull request #18196 from mpashchenkov:mp/garray-initialization
[G-API]: Add GArray initialization support * Added GArray initialization (CONST_VALUE, GScalar analog) and test for this * Whitespaces * And one more space * Trailing whitespace * Test name changed. Build with magic commands. * GArray works with rvalue initialization * Code cleanup * Ternary operator in the initialization list.
This commit is contained in:
committed by
GitHub
parent
a07f064e50
commit
830d8d6b75
@@ -20,6 +20,11 @@ cv::detail::GArrayU::GArrayU(const GNode &n, std::size_t out)
|
||||
{
|
||||
}
|
||||
|
||||
cv::detail::GArrayU::GArrayU(const detail::VectorRef& vref)
|
||||
: m_priv(new GOrigin(GShape::GARRAY, cv::gimpl::ConstVal(vref)))
|
||||
{
|
||||
}
|
||||
|
||||
cv::GOrigin& cv::detail::GArrayU::priv()
|
||||
{
|
||||
return *m_priv;
|
||||
|
||||
Reference in New Issue
Block a user