VPI - Vision Programming Interface

3.0 Release

OpenCVInterop.hpp File Reference

Functions for handling OpenCV interoperability with VPI. More...

#include "detail/OpenCVUtils.hpp"
#include "Image.h"
#include <opencv2/core/core.hpp>
#include <vector>
+ Include dependency graph for OpenCVInterop.hpp:

Go to the source code of this file.

Functions

VPIStatus vpiImageCreateWrapperOpenCVMat (const cv::Mat &mat, VPIImageFormat fmt, uint64_t flags, VPIImage *img)
 Wraps a cv::Mat in an VPIImage with the given image format. More...
 
VPIStatus vpiImageCreateWrapperOpenCVMat (const cv::Mat &mat, uint64_t flags, VPIImage *img)
 Wraps a cv::Mat in a VPIImage and infers the image format from its type. More...
 
VPIStatus vpiImageSetWrappedOpenCVMat (VPIImage img, const cv::Mat &mat)
 Redefines the wrapped cv::Mat of an existing VPIImage wrapper. More...
 
VPIStatus vpiImageCreateWrapperOpenCVMatPlanes (const std::vector< cv::Mat > &matPlanes, VPIImageFormat fmt, uint64_t flags, VPIImage *img)
 Wraps a vector of cv::Mats in a VPIImage, each cv::Mat representing one image plane. More...
 
VPIStatus vpiImageSetWrappedOpenCVMatPlanes (VPIImage img, const std::vector< cv::Mat > &matPlanes)
 Replaces the wrapped cv::Mat planes with new ones. More...
 
VPIStatus vpiImageDataExportOpenCVMat (const VPIImageData &imgData, cv::Mat *mat)
 Fills an existing cv::Mat with data from VPIImageData coming from a locked VPIImage. More...
 
VPIStatus vpiImageDataExportOpenCVMatPlanes (const VPIImageData &imgData, std::vector< cv::Mat > *matPlanes)
 Fills a vector of cv::Mat with all planes from VPIImageData. More...
 
VPIStatus vpiImageDataImportOpenCVMat (const cv::Mat &mat, VPIImageData *imgData)
 Fills an existing VPIImageData with data from given cv::Mat. More...
 
VPIStatus vpiImageDataImportOpenCVMat (const cv::Mat &mat, VPIImageFormat fmt, VPIImageData *imgData)
 Fills an existing VPIImageData with data from given cv::Mat, forcing the given image format. More...
 
VPIStatus vpiImageDataImportOpenCVMatPlanes (const std::vector< cv::Mat > &matPlanes, VPIImageFormat fmt, VPIImageData *imgData)
 Fills a vector of cv::Mat describing all planes from given VPIImageData forcing the given image format. More...
 

Detailed Description

Functions for handling OpenCV interoperability with VPI.

Definition in file OpenCVInterop.hpp.