mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
add +-*/ operators to oclMat
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
//
|
||||
// Copyright (C) 2010-2012, Institute Of Software Chinese Academy Of Science, all rights reserved.
|
||||
// Copyright (C) 2010-2012, Advanced Micro Devices, Inc., all rights reserved.
|
||||
// Copyright (C) 2010-2012, Multicoreware, Inc., all rights reserved.
|
||||
// Third party copyrights are property of their respective owners.
|
||||
//
|
||||
// @Authors
|
||||
@@ -2152,6 +2153,34 @@ cv::ocl::oclMat cv::ocl::operator ^ (const oclMat &src1, const oclMat &src2)
|
||||
return dst;
|
||||
}
|
||||
|
||||
cv::ocl::oclMat cv::ocl::operator + (const oclMat &src1, const oclMat &src2)
|
||||
{
|
||||
oclMat dst;
|
||||
add(src1, src2, dst);
|
||||
return dst;
|
||||
}
|
||||
|
||||
cv::ocl::oclMat cv::ocl::operator - (const oclMat &src1, const oclMat &src2)
|
||||
{
|
||||
oclMat dst;
|
||||
subtract(src1, src2, dst);
|
||||
return dst;
|
||||
}
|
||||
|
||||
cv::ocl::oclMat cv::ocl::operator * (const oclMat &src1, const oclMat &src2)
|
||||
{
|
||||
oclMat dst;
|
||||
multiply(src1, src2, dst);
|
||||
return dst;
|
||||
}
|
||||
|
||||
cv::ocl::oclMat cv::ocl::operator / (const oclMat &src1, const oclMat &src2)
|
||||
{
|
||||
oclMat dst;
|
||||
divide(src1, src2, dst);
|
||||
return dst;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////// transpose ////////////////////////////////////
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user