![]() |
OpenCV
4.9.0
Open Source Computer Vision
|
Enumerations | |
| 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 } |
| Resizes an image src down to or up to the specified size. More... | |
Functions | |
| AscendMat | cv::cann::crop (InputArray src, const Rect &rect, AscendStream &stream=AscendStream::Null()) |
| crop a 2D array. The function crops the matrix by given cv::Rect. Output matrix must be of the same depth as input one, size is specified by given rect size. More... | |
| AscendMat | cv::cann::crop (const AscendMat &src, const Rect &rect, AscendStream &stream=AscendStream::Null()) |
| void | cv::cann::flip (InputArray src, OutputArray dst, int flipCode, AscendStream &stream=AscendStream::Null()) |
| Flips a 2D matrix around vertical, horizontal, or both axes. More... | |
| void | cv::cann::flip (const AscendMat &src, AscendMat &dst, int flipCode, AscendStream &stream=AscendStream::Null()) |
| void | cv::cann::merge (const AscendMat *src, size_t n, AscendMat &dst, AscendStream &stream=AscendStream::Null()) |
| Makes a multi-channel matrix out of several single-channel matrices. More... | |
| void | cv::cann::merge (const std::vector< AscendMat > &src, 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, OutputArray &dst, AscendStream &stream=AscendStream::Null()) |
| void | cv::cann::resize (InputArray _src, OutputArray _dst, Size dsize, double inv_scale_x, double inv_scale_y, int interpolation, AscendStream &stream=AscendStream::Null()) |
| void | cv::cann::resize (const AscendMat &src, AscendMat &dst, Size dsize, double inv_scale_x, double inv_scale_y, int interpolation, AscendStream &stream=AscendStream::Null()) |
| void | cv::cann::rotate (InputArray src, OutputArray dst, int rotateCode, AscendStream &stream=AscendStream::Null()) |
| Rotates a 2D array in multiples of 90 degrees. The function cv::rotate rotates the array in one of three different ways: Rotate by 90 degrees clockwise (rotateCode = ROTATE_90_CLOCKWISE). Rotate by 180 degrees clockwise (rotateCode = ROTATE_180). Rotate by 270 degrees clockwise (rotateCode = ROTATE_90_COUNTERCLOCKWISE). More... | |
| void | cv::cann::rotate (const AscendMat &src, AscendMat &dst, int rotateMode, AscendStream &stream=AscendStream::Null()) |
| void | cv::cann::split (const AscendMat &src, AscendMat *dst, AscendStream &stream=AscendStream::Null()) |
| Copies each plane of a multi-channel matrix into an array. More... | |
| 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::transpose (InputArray src, OutputArray dst, AscendStream &stream=AscendStream::Null()) |
| Transposes a matrix. More... | |
| void | cv::cann::transpose (const AscendMat &src, AscendMat &dst, AscendStream &stream=AscendStream::Null()) |
#include <opencv2/cann_interface.hpp>
Resizes an image src down to or up to the specified size.
| src | input image |
| dst | output image; it has the size dsize (when it is non-zero) or the size computed from src.size(), fx, and fy; the type of dst is the same as of src. |
| dsize | output image size; if it equals zero, it is computed as: \[𝚍𝚜𝚒𝚣𝚎 = 𝚂𝚒𝚣𝚎(𝚛𝚘𝚞𝚗𝚍(𝚏𝚡*𝚜𝚛𝚌.𝚌𝚘𝚕𝚜), 𝚛𝚘𝚞𝚗𝚍(𝚏𝚢*𝚜𝚛𝚌.𝚛𝚘𝚠𝚜))\] Either dsize or both fx and fy must be non-zero. |
| fx | scale factor along the horizontal axis; when it equals 0, it is computed as \[(𝚍𝚘𝚞𝚋𝚕𝚎)𝚍𝚜𝚒𝚣𝚎.𝚠𝚒𝚍𝚝𝚑/𝚜𝚛𝚌.𝚌𝚘𝚕𝚜\] |
| fy | scale factor along the vertical axis; when it equals 0, it is computed as \[(𝚍𝚘𝚞𝚋𝚕𝚎)𝚍𝚜𝚒𝚣𝚎.𝚑𝚎𝚒𝚐𝚑𝚝/𝚜𝚛𝚌.𝚛𝚘𝚠𝚜\] |
| interpolation | interpolation method(see cv.cann.InterpolationFlags) |
| AscendMat cv::cann::crop | ( | InputArray | src, |
| const Rect & | rect, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
crop a 2D array. The function crops the matrix by given cv::Rect. Output matrix must be of the same depth as input one, size is specified by given rect size.
| src | input array. |
| rect | a rect to crop a array to |
| stream | AscendStream for the asynchronous version. |
| AscendMat cv::cann::crop | ( | const AscendMat & | src, |
| const Rect & | rect, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::flip | ( | InputArray | src, |
| OutputArray | dst, | ||
| int | flipCode, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
Flips a 2D matrix around vertical, horizontal, or both axes.
| src | Source matrix. |
| dst | Destination matrix. |
| flipCode | Flip mode for the source:
|
| stream | AscendStream for the asynchronous version. |
| void cv::cann::flip | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| int | flipCode, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::merge | ( | const AscendMat * | src, |
| size_t | n, | ||
| AscendMat & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
Makes a multi-channel matrix out of several single-channel matrices.
| src | Array/vector of source matrices. |
| n | Number of source matrices. |
| dst | Destination matrix. |
| stream | AscendStream for the asynchronous version. |
| void cv::cann::merge | ( | const std::vector< AscendMat > & | src, |
| AscendMat & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::merge | ( | const AscendMat * | src, |
| size_t | n, | ||
| OutputArray & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::merge | ( | const std::vector< AscendMat > & | src, |
| OutputArray & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::resize | ( | InputArray | _src, |
| OutputArray | _dst, | ||
| Size | dsize, | ||
| double | inv_scale_x, | ||
| double | inv_scale_y, | ||
| int | interpolation, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
| void cv::cann::resize | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| Size | dsize, | ||
| double | inv_scale_x, | ||
| double | inv_scale_y, | ||
| int | interpolation, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::rotate | ( | InputArray | src, |
| OutputArray | dst, | ||
| int | rotateCode, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
Rotates a 2D array in multiples of 90 degrees. The function cv::rotate rotates the array in one of three different ways: Rotate by 90 degrees clockwise (rotateCode = ROTATE_90_CLOCKWISE). Rotate by 180 degrees clockwise (rotateCode = ROTATE_180). Rotate by 270 degrees clockwise (rotateCode = ROTATE_90_COUNTERCLOCKWISE).
| src | input array. |
| dst | output array of the same type as src. The size is the same with ROTATE_180, and the rows and cols are switched for ROTATE_90_CLOCKWISE and ROTATE_90_COUNTERCLOCKWISE. |
| rotateCode | an enum to specify how to rotate the array; see the enum RotateFlags |
| stream | AscendStream for the asynchronous version. |
| void cv::cann::rotate | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| int | rotateMode, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::split | ( | const AscendMat & | src, |
| AscendMat * | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
Copies each plane of a multi-channel matrix into an array.
| src | Source matrix. |
| dst | Destination array/vector of single-channel matrices. |
| stream | AscendStream for the asynchronous version. |
| void cv::cann::split | ( | const AscendMat & | src, |
| std::vector< AscendMat > & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::split | ( | const InputArray | src, |
| AscendMat * | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::split | ( | const InputArray | src, |
| std::vector< AscendMat > & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void cv::cann::transpose | ( | InputArray | src, |
| OutputArray | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
Transposes a matrix.
| src | Source matrix. |
| dst | Destination matrix. |
| stream | AscendStream for the asynchronous version. |
| void cv::cann::transpose | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1.8.13