OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
cann.hpp File Reference
#include "opencv2/core.hpp"
#include "opencv2/cann.inl.hpp"
Include dependency graph for cann.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  cv::cann::AscendMat::Allocator
 
class  cv::cann::AscendEvent
 AscendEvent to synchronize between different streams. More...
 
class  cv::cann::AscendMat
 
class  cv::cann::AscendStream
 In AscendCL Stream(AscendStream) is a task queue. Stream is used to manage the parallelism of tasks. The tasks inside a Stream are executed sequentially, that is, the Stream executes sequentially according to the sent tasks; the tasks in different Streams are executed in parallel. More...
 

Namespaces

namespace  cv
 
namespace  cv::cann
 

Functions

void cv::cann::finalizeAcl ()
 finalize AscendCL.
 
void cv::cann::finalizeDvpp ()
 finalize DVPP system.
 
int32_t cv::cann::getDevice ()
 Get current Ascend device.
 
AscendMat cv::cann::getInputMat (InputArray src, AscendStream &stream)
 Get Ascend matrix object from Input array, upload matrix memory if need. (Non-Blocking call)
 
AscendMat cv::cann::getOutputMat (OutputArray dst, int rows, int cols, int type, AscendStream &stream)
 Get Ascend matrix object from Output array, upload matrix memory if need.
 
void cv::cann::initAcl ()
 init AscendCL.
 
void cv::cann::initDvpp ()
 init DVPP system.
 
void cv::cann::resetDevice ()
 Clear all context created in current Ascend device.
 
void cv::cann::setDevice (int device)
 Choose Ascend npu device.
 
void cv::cann::syncOutput (const AscendMat &dst, OutputArray _dst, AscendStream &stream)
 Sync output matrix to Output array, download matrix memory if need.
 
AscendStream cv::cann::wrapStream (size_t AscendStreamAddress)
 Bindings overload to create a Stream object from the address stored in an existing CANN Runtime API stream pointer (aclrtStream).