![]() |
OpenCV 4.12.0
开源计算机视觉
|
| void cv::cann::add | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::add | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::add | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| const InputArray | mask = noArray(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
计算矩阵-矩阵或矩阵-标量之和。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。矩阵应与 src1 具有相同的大小和类型。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| mask | 可选操作掩码,8位单通道数组,指定要更改的目的数组元素。此掩码只能用于单通道图像。 |
| dtype | 输出数组的可选深度。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::add | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::addWeighted | ( | const AscendMat & | src1, |
| double | alpha, | ||
| const AscendMat & | src2, | ||
| double | beta, | ||
| double | gamma, | ||
| AscendMat & | dst, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::addWeighted | ( | const InputArray | src1, |
| double | alpha, | ||
| const InputArray | src2, | ||
| double | beta, | ||
| double | gamma, | ||
| OutputArray | dst, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
计算两个数组的加权和。
| src1 | 第一个源数组。 |
| alpha | 第一个数组元素的权重。 |
| src2 | 与 src1 具有相同大小和通道数的第二个源数组。 |
| beta | 第二个数组元素的权重。 |
| dst | 与输入数组具有相同大小和通道数的目标数组。 |
| gamma | 加到每个和中的标量。 |
| dtype | 目标数组的可选深度。当两个输入数组具有相同的深度时,dtype 可以设置为 -1,这等效于 src1.depth()。 |
| 流 | 用于异步版本的流。 |
addWeighted 函数按如下方式计算两个数组的加权和
\[\texttt{dst} (I)= \texttt{saturate} ( \texttt{src1} (I)* \texttt{alpha} + \texttt{src2} (I)* \texttt{beta} + \texttt{gamma} )\]
其中 I 是数组元素的多维索引。对于多通道数组,每个通道独立处理。
| void cv::cann::bitwise_and | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
| void cv::cann::bitwise_and | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::bitwise_and | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| const InputArray | mask = noArray(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
执行两个矩阵(或矩阵与标量)的按元素位与运算。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| mask | 可选操作掩码,8位单通道数组,指定要更改的目的数组元素。此掩码只能用于单通道图像。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::bitwise_and | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::bitwise_not | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::bitwise_not | ( | const InputArray | src, |
| OutputArray | dst, | ||
| const InputArray | mask = noArray(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
执行按元素位反转。
| src | 第一个源矩阵。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| mask | 可选操作掩码,8位单通道数组,指定要更改的目的数组元素。此掩码只能用于单通道图像。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::bitwise_or | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
| void cv::cann::bitwise_or | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::bitwise_or | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| const InputArray | mask = noArray(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
执行两个矩阵(或矩阵与标量)的按元素位或运算。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| mask | 可选操作掩码,8位单通道数组,指定要更改的目的数组元素。此掩码只能用于单通道图像。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::bitwise_or | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::bitwise_xor | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
| void cv::cann::bitwise_xor | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::bitwise_xor | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| const InputArray | mask = noArray(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
执行两个矩阵(或矩阵与标量)的按元素位异或运算。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| mask | 可选操作掩码,8位单通道数组,指定要更改的目的数组元素。此掩码只能用于单通道图像。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::bitwise_xor | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::divide | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
| void cv::cann::divide | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::divide | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
计算矩阵-矩阵或矩阵-标量除法。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。矩阵应与 src1 具有相同的大小和类型。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| scale | 可选的比例因子。 |
| dtype | 输出数组的可选深度。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::divide | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::multiply | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::multiply | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::multiply | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
计算矩阵-矩阵或矩阵-标量按元素乘积。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。矩阵应与 src1 具有相同的大小和类型。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| scale | 可选的比例因子。 |
| dtype | 输出数组的可选深度。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::multiply | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| float | scale = 1, | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::subtract | ( | const AscendMat & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::subtract | ( | const AscendMat & | src1, |
| const Scalar & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| void cv::cann::subtract | ( | const InputArray | src1, |
| const InputArray | src2, | ||
| OutputArray | dst, | ||
| const InputArray | mask = noArray(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
计算矩阵-矩阵或矩阵-标量差。
| src1 | 第一个源矩阵或标量。 |
| src2 | 第二个源矩阵或标量。矩阵应与 src1 具有相同的大小和类型。 |
| dst | 与输入数组具有相同大小和通道数的目的矩阵。深度由 dtype 或 src1 深度定义。 |
| mask | 可选操作掩码,8位单通道数组,指定要更改的目的数组元素。此掩码只能用于单通道图像。 |
| dtype | 输出数组的可选深度。 |
| 流 | AscendStream 用于异步版本。 |
| void cv::cann::subtract | ( | const Scalar & | src1, |
| const AscendMat & | src2, | ||
| AscendMat & | dst, | ||
| const AscendMat & | mask = AscendMat(), | ||
| int | dtype = -1, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| double cv::cann::threshold | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| double | thresh, | ||
| double | 最大值, | ||
| int | type, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
这是一个重载成员函数,为方便起见提供。它与上述函数的区别仅在于其接受的参数。
| double cv::cann::threshold | ( | const InputArray | src, |
| OutputArray | dst, | ||
| double | thresh, | ||
| double | 最大值, | ||
| int | type, | ||
| AscendStream & | stream = AscendStream::Null() ) |
#include <opencv2/cann_interface.hpp>
对每个数组元素应用固定级别的阈值。
| src | 源数组(单通道)。 |
| dst | 与 src 具有相同大小和类型的目标数组。 |
| thresh | 阈值。 |
| 最大值 | 与 THRESH_BINARY 和 THRESH_BINARY_INV 阈值类型一起使用的最大值。 |
| type | 阈值类型。详情请参阅 threshold。不支持 THRESH_MASK、THRESH_OTSU 和 THRESH_TRIANGLE 阈值类型。 |
| 流 | AscendStream 用于异步版本。 |