![]() |
OpenCV 4.12.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 中导出。 |
| 流 | AscendStream 用于异步版本。 |