Merge pull request #18182 from OrestChura:oc/operators_to_cv

[G-API]: Relocation of operators' overloads

* Relocates overloaded operators for `cv::GMat` and `cv::GScalar` to `cv::` namespace
 - adds test to check usage of operators compilation

* Add tests for all the operators

* Address comments
This commit is contained in:
Orest Chura
2020-09-02 22:28:10 +03:00
committed by GitHub
parent 0428dce27d
commit 7a796b20ea
3 changed files with 81 additions and 2 deletions
+3
View File
@@ -12,6 +12,8 @@
#include <opencv2/gapi/gscalar.hpp>
#include <opencv2/gapi/operators.hpp>
namespace cv
{
cv::GMat operator+(const cv::GMat& lhs, const cv::GMat& rhs)
{
return cv::gapi::add(lhs, rhs);
@@ -211,3 +213,4 @@ cv::GMat operator!=(const cv::GScalar& lhs, const cv::GMat& rhs)
{
return cv::gapi::cmpNE(rhs, lhs);
}
} // cv