![]() |
OpenCV 4.13.0
Open Source Computer Vision
|
関数 | |
| 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。 |