![]() |
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 用於非同步版本。 |