OpenCV
4.10.0-dev
Open Source Computer Vision
|
Functions | |
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()) |
Converts an image from one color space to another. | |
void cv::cann::cvtColor | ( | const AscendMat & | src, |
AscendMat & | dst, | ||
int | code, | ||
int | dstCn = 0 , |
||
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::cvtColor | ( | const InputArray | src, |
OutputArray | dst, | ||
int | code, | ||
int | dstCn = 0 , |
||
AscendStream & | stream = AscendStream::Null() |
||
) |
#include <opencv2/cann_interface.hpp>
Converts an image from one color space to another.
src | Source image with CV_8U , CV_16U , or CV_32F depth and 1, 3, or 4 channels. |
dst | Destination image. |
code | Color space conversion code. For details, see cv::ColorConversionCodes . |
dstCn | Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code . |
stream | AscendStream for the asynchronous version. |