OpenCV
5.0.0-pre
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 } |
interpolation algorithm More... | |
Functions | |
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()) |
Forms a border and fills it with specified bordertype around the copy of input image. | |
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()) |
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. | |
void | cv::cann::cropResize (const AscendMat &src, AscendMat &dst, const Rect &rect, Size dsize, double fx, double fy, int interpolation) |
void | cv::cann::cropResize (const InputArray src, OutputArray dst, const Rect &rect, Size dsize, double fx, double fy, int interpolation) |
crop a sub image from a big one, and resize it to certain size. | |
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()) |
crop a sub image from a big one, resize it to certain size, and form the top/left border and fills it with specified bordertype. | |
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()) |
Flips a 2D matrix around vertical, horizontal, or both axes. | |
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. | |
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::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()) |
Resizes an image src down to or up to the specified size. | |
void | cv::cann::rotate (const AscendMat &src, AscendMat &dst, int rotateMode, 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). | |
void | cv::cann::split (const AscendMat &src, AscendMat *dst, AscendStream &stream=AscendStream::Null()) |
Copies each plane of a multi-channel matrix into an array. | |
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 (const AscendMat &src, AscendMat &dst, AscendStream &stream=AscendStream::Null()) |
void | cv::cann::transpose (InputArray src, OutputArray dst, AscendStream &stream=AscendStream::Null()) |
Transposes a matrix. | |
#include <opencv2/cann_interface.hpp>
interpolation algorithm
void cv::cann::copyMakeBorder | ( | const AscendMat & | src, |
AscendMat & | dst, | ||
int | top, | ||
int | bottom, | ||
int | left, | ||
int | right, | ||
int | borderType, | ||
const Scalar & | value = Scalar() |
||
) |
#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::copyMakeBorder | ( | const InputArray | src, |
OutputArray | dst, | ||
int | top, | ||
int | bottom, | ||
int | left, | ||
int | right, | ||
int | borderType, | ||
const Scalar & | value = Scalar() |
||
) |
#include <opencv2/cann_interface.hpp>
Forms a border and fills it with specified bordertype around the copy of input image.
src | Source image. |
dst | Destination image of the same type as src and the size Size(src.cols+left+right, src.rows+top+bottom). |
top | Number of pixels for top padding |
bottom | Number of pixels for bottom padding |
left | Number of pixels for left padding |
right | Number of pixels for right padding Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate. For example, top=1, bottom=1, left=1, right=1 mean that 1 pixel-wide border needs to be built. |
borderType | Border type. only cv::BorderTypes::BORDER_CONSTANT and cv::BorderTypes::BORDER_REPLICATE are supported. |
value | Border BGR or YUV value if borderType==BORDER_CONSTANT. |
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.
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. |
void cv::cann::cropResize | ( | const AscendMat & | src, |
AscendMat & | dst, | ||
const Rect & | rect, | ||
Size | dsize, | ||
double | fx, | ||
double | fy, | ||
int | interpolation | ||
) |
#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::cropResize | ( | const InputArray | src, |
OutputArray | dst, | ||
const Rect & | rect, | ||
Size | dsize, | ||
double | fx, | ||
double | fy, | ||
int | interpolation | ||
) |
#include <opencv2/cann_interface.hpp>
crop a sub image from a big one, and resize it to certain size.
src | input array. |
dst | output array. 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. |
rect | a rect to crop a array to |
dsize | output image size; if it equals zero, it is computed as cv::resize do. |
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, only support INTER_NEAREST and INTER_LINEAR here. (see cv.cann.InterpolationFlags) |
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() |
||
) |
#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::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() |
||
) |
#include <opencv2/cann_interface.hpp>
crop a sub image from a big one, resize it to certain size, and form the top/left border and fills it with specified bordertype.
src | input array. |
dst | output array; it has the size Size(dsize.height + top, dsize.width + left). |
rect | a rect to crop a array to |
dsize | resize size; |
fx | scale factor along the horizontal axis; |
fy | scale factor along the vertical axis; |
interpolation | interpolation method, only INTER_NEAREST and INTER_LINEAR are supported. (see cv.cann.InterpolationFlags) |
borderType | border extrapolate method, only cv::BorderTypes::BORDER_CONSTANT and cv::BorderTypes::BORDER_REPLICATE are supported. |
value | Border BGR or YUV value if borderType==BORDER_CONSTANT. |
top | Number of pixels for top padding |
left | Number of pixels for left padding |
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::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::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 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, |
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 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 | ( | const AscendMat & | src, |
AscendMat & | dst, | ||
Size | dsize, | ||
double | fx, | ||
double | fy, | ||
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::resize | ( | InputArray | src, |
OutputArray | dst, | ||
Size | dsize, | ||
double | fx, | ||
double | fy, | ||
int | interpolation, | ||
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) |
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::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::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 | ( | 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.
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. |