OpenCV  4.9.0
Open Source Computer Vision
Functions

Functions

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. More...
 
void cv::cann::cvtColor (const AscendMat &src, AscendMat &dst, int code, int dstCn=0, AscendStream &stream=AscendStream::Null())
 

Detailed Description

Function Documentation

◆ cvtColor() [1/2]

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.

Parameters
srcSource image with CV_8U , CV_16U , or CV_32F depth and 1, 3, or 4 channels.
dstDestination image.
codeColor space conversion code. For details, see cvtColor .
dstCnNumber of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from src and the code .
streamAscendStream for the asynchronous version.
See also
cv::cvtColor cv::cuda::cvtColor

◆ cvtColor() [2/2]

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.