OpenCV 4.10.0
开源计算机视觉
|
#include "opencv2/cann.hpp"
命名空间 | |
namespace | cv |
"black box" representation of the file storage associated with a file on disk. | |
namespace | cv::cann |
枚举 | |
enum | cv::cann::InterpolationFlags { cv::cann::INTER_NEAREST = 0 , cv::cann::INTER_LINEAR = 1 , cv::cann::INTER_CUBIC = 2 , cv::cann::INTER_AREA = 3 , cv::cann::INTER_MAX = 7 } |
插值算法 更多信息... | |
函数 | |||
void | cv::cann::add (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::add (const AscendMat &src1, const Scalar &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::add (const InputArray src1, const InputArray src2, OutputArray dst, const InputArray mask=noArray(), int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
计算矩阵-矩阵或矩阵-标量的和。 | |||
void | cv::cann::add (const Scalar &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
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()) | ||
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()) | ||
计算两个数组加权的总和。 | |||
void | cv::cann::bitwise_and (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::bitwise_and (const AscendMat &src1, const Scalar &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::bitwise_and (const InputArray src1, const InputArray src2, OutputArray dst, const InputArray mask=noArray(), AscendStream &stream=AscendStream::Null()) | ||
执行两个矩阵(或矩阵与标量)的逐元素位与操作。 | |||
void | cv::cann::bitwise_and (const Scalar &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::bitwise_not (const AscendMat &src, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::bitwise_not (const InputArray src, OutputArray dst, const InputArray mask=noArray(), AscendStream &stream=AscendStream::Null()) | ||
执行逐元素的位非操作。 | |||
void | cv::cann::bitwise_or (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null())) | ||
void | cv::cann::bitwise_or (const AscendMat &src1, const Scalar &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null())) | ||
void | cv::cann::bitwise_or (const InputArray src1, const InputArray src2, OutputArray dst, const InputArray mask=noArray(), AscendStream &stream=AscendStream::Null())) | ||
执行矩阵间(或矩阵与标量间)的按元素位或操作。 | |||
void | cv::cann::bitwise_or (const Scalar &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMatAscendStream &stream=AscendStream::Null())) | ||
void | cv::cann::bitwise_xor (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null())) | ||
void | cv::cann::bitwise_xor (const AscendMat &src1, const Scalar &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null())) | ||
void | cv::cann::bitwise_xor (const InputArray src1, const InputArray src2, OutputArray dst, const InputArray mask=noArray(), AscendStream &stream=AscendStream::Null()) | ||
对两个矩阵(或矩阵与标量)执行元素级的按位异或运算。 | |||
void | cv::cann::bitwise_xor (const Scalar &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask=AscendMat(), AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::copyMakeBorder (const AscendMat&src, AscendMat&dst, int top, int bottom, int left, int right, int borderType, const Scalar&value= Scalar& | ||
void | cv::cann::copyMakeBorder (const InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, const Scalar&value= Scalar& | ||
在输入图像的副本周围形成边界并填充指定的边界类型。 | |||
AscendMat | cv::cann::crop (const AscendMat&src, const Rect&rect, AscendStream&stream=AscendStream::Null()) | ||
AscendMat | cv::cann::crop (InputArray src, const Rect&rect, AscendStream&stream=AscendStream::Null()) | ||
剪切一个二维数组。函数通过给定的 cv::Rect 剪切矩阵。输出矩阵必须与输入矩阵具有相同的深度,大小由给定的矩形大小指定。 | |||
void | cv::cann::cropResize (const AscendMat&src, AscendMat&dst, const Rect&rect, const Size&dsize, double fx, double fy, int interpolation) | ||
void | cv::cann::cropResize (const InputArray src, OutputArray dst, const Rect&rect, const Size&dsize, double fx, double fy, int interpolation) | ||
从大图像中裁剪子图像,并将其调整到特定尺寸。 | |||
void | cv::cann::cropResizeMakeBorder (const AscendMat &src, AscendMat &dst, const Rect &rect, Size dsize, double fx, double fy, int interpolation, int top, int left, const int borderType, Scalar value=Scalar()) | ||
void | cv::cann::cropResizeMakeBorder (const InputArray src, OutputArray dst, const Rect &rect, Size dsize, double fx, double fy, int interpolation, int top, int left, const int borderType, Scalar value=Scalar()) | ||
从大图像中裁剪子图像,将其调整到特定尺寸,并形成顶部/左侧边界,并用指定的bordertype填充。 | |||
void | cv::cann::cvtColor (const AscendMat &src, AscendMat &dst, int code, int dstCn=0, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::cvtColor (const InputArray src, OutputArray dst, int code, int dstCn=0, AscendStream &stream=AscendStream::Null()) | ||
将图像从一种颜色空间转换为另一种颜色空间。 | |||
void | cv::cann::divide (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::divide (const AscendMat &src1, const Scalar &src2, AscendMat &dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::divide (const InputArray src1, const InputArray src2, OutputArray dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
计算矩阵-矩阵或矩阵-标量除法。 | |||
void | cv::cann::divide (const Scalar &src1, const AscendMat &src2, AscendMat &dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::flip (const AscendMat &src, AscendMat &dst, int flipCode, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::flip (InputArray src, OutputArray dst, int flipCode, AscendStream &stream=AscendStream::Null()) | ||
沿垂直、水平或同时绕两个轴翻转2D矩阵。 | |||
void | cv::cann::merge (const AscendMat *src, size_t n, AscendMat &dst, AscendStream &stream=AscendStream::Null()) | ||
将多个单通道矩阵组合成多通道矩阵。 | |||
void | cv::cann::merge (const AscendMat *src, size_t n, OutputArray &dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::merge (const std::vector< AscendMat > &src, AscendMat &dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::merge (const std::vector< AscendMat > &src, OutputArray &dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::multiply (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::multiply (const AscendMat &src1, const Scalar &src2, AscendMat &dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::multiply (const InputArray src1, const InputArray src2, OutputArray dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
计算矩阵-矩阵或矩阵-标量的逐元素乘积。 | |||
void | cv::cann::multiply (const Scalar &src1, const AscendMat &src2, AscendMat &dst, float scale=1, int dtype=-1, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::resize (const AscendMat &src, AscendMat &dst, Size dsize, double fx, double fy, int interpolation, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::resize (InputArray src, OutputArray dst, Size dsize, double fx, double fy, int interpolation, AscendStream &stream=AscendStream::Null()) | ||
将图像src调整为指定的大小或缩小至指定大小。 | |||
void | cv::cann::rotate (const AscendMat &src, AscendMat &dst, int rotateMode, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::rotate (<а class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray src, OutputArray dst, int rotateCode, AscendStream &stream=<а class="el" href="../../d7/dcc/classcv_1_1cann_1_1AscendStream.html#ae5414fcc15fae3750a144b0ef4f2ca1d">AscendStream::Null()) | ||
以90度的倍数旋转二维数组。函数 cv::rotate 以三种不同的方式旋转数组:顺时针旋转90度(rotateCode = ROTATE_90_CLOCKWISE)。顺时针旋转180度(rotateCode = ROTATE_180)。顺时针旋转270度(rotateCode = ROTATE_90_COUNTERCLOCKWISE)。 | |||
void | cv::cann::split (const AscendMat &src, | 将多通道矩阵的每个平面复制到数组中。 | |
void | cv::cann::split (const AscendMat &src, std::vector< AscendMat > &dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::split (const InputArray src, AscendMat *dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::split (const InputArray src, std::vector< AscendMat > &dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::subtract (const AscendMat &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask= AscendMat(), int dtype=-1, AscendStream &stream= AscendStream::Null()) | ||
void | cv::cann::subtract (const AscendMat &src1, const Scalar &src2, AscendMat &dst, const AscendMat &mask= AscendMat(), int dtype=-1, AscendStream &stream= AscendStream::Null()) | ||
void | cv::cann::subtract (const InputArray src1, const InputArray src2, OutputArray dst, const InputArray mask= noArray(), int dtype=-1, AscendStream &stream= AscendStream::Null()) | ||
计算矩阵矩阵或者矩阵标量的差。 | |||
void | cv::cann::subtract (const Scalar &src1, const AscendMat &src2, AscendMat &dst, const AscendMat &mask= AscendMat(), int dtype=-1, AscendStream &stream= AscendStream::Null()) | ||
double | cv::cann::threshold (const AscendMat &src, AscendMat &dst, double thresh, double maxval, int type, AscendStream &stream= AscendStream::Null()) | ||
double | cv::cann::threshold (const InputArray src, OutputArray dst, double thresh, double maxval, int type, AscendStream &stream= AscendStream::Null()) | ||
对每个数组元素应用固定阈值的阈值操作。 | |||
void | cv::cann::transpose (const AscendMat &src, AscendMat &dst, AscendStream &stream=AscendStream::Null()) | ||
void | cv::cann::transpose (InputArray src, OutputArray dst, AscendStream &stream=AscendStream::Null()) | ||
转置矩阵。 | |||