![]() |
OpenCV 4.10.0
开源计算机视觉
|
函数 | |
| 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::cvtColor | ( | const AscendMat & | src, |
| AscendMat & | dst, | ||
| int | code, | ||
| int | dstCn = 0, |
||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
这是为方便提供的重载成员函数。除了其所接受的参数外,它与上述函数无异。
| void cv::cann::cvtColor | ( | const InputArray | src, |
| OutputArray | dst, | ||
| int | code, | ||
| int | dstCn = 0, |
||
| AscendStream & | stream = AscendStream::Null() |
||
| ) |
#include <opencv2/cann_interface.hpp>
将图像从一种颜色空间转换为另一种颜色空间。
| src | 具有 CV_8U 、 CV_16U 或 CV_32F 深度且有 1、3 或 4 个通道的图像。 |
| dst | 输出图像。 |
| code | 颜色空间转换代码。有关详细信息,请参见 cv::ColorConversionCodes 。 |
| dstCn | 输出图像中的通道数。如果参数为 0,则通道数将根据 src 和 code 自动推导出来。 |
| stream | AscendStream 用于异步版本。 |
1.9.8