OpenCV 4.11.0
开源计算机视觉
|
函数 | |
void | cv::directx::convertFromD3D10Texture2D (ID3D10Texture2D *pD3D10Texture2D, OutputArray dst) |
将ID3D10Texture2D转换为OutputArray。 | |
void | cv::directx::convertFromD3D11Texture2D (ID3D11Texture2D *pD3D11Texture2D, OutputArray dst) |
将ID3D11Texture2D转换为OutputArray。如果输入纹理格式为DXGI_FORMAT_NV12,则数据将被上采样并颜色转换为BGR格式。 | |
void | cv::directx::convertFromDirect3DSurface9 (IDirect3DSurface9 *pDirect3DSurface9, OutputArray dst, void *surfaceSharedHandle=NULL) |
将IDirect3DSurface9转换为OutputArray。 | |
void | cv::directx::convertToD3D10Texture2D (InputArray src, ID3D10Texture2D *pD3D10Texture2D) |
将InputArray转换为ID3D10Texture2D。 | |
void | cv::directx::convertToD3D11Texture2D (InputArray src, ID3D11Texture2D *pD3D11Texture2D) |
将InputArray转换为ID3D11Texture2D。如果目标纹理格式为DXGI_FORMAT_NV12,则预期输入UMat为BGR格式,数据将被下采样并颜色转换为NV12。 | |
void | cv::directx::convertToDirect3DSurface9 (InputArray src, IDirect3DSurface9 *pDirect3DSurface9, void *surfaceSharedHandle=NULL) |
将InputArray转换为IDirect3DSurface9。 | |
int | cv::directx::getTypeFromD3DFORMAT (const int iD3DFORMAT) |
从DirectX类型获取OpenCV类型。 | |
int | cv::directx::getTypeFromDXGI_FORMAT (const int iDXGI_FORMAT) |
从DirectX类型获取OpenCV类型。 | |
Context | cv::directx::ocl::initializeContextFromD3D10Device (ID3D10Device *pD3D10Device) |
从D3D10设备创建OpenCL上下文。 | |
Context | cv::directx::ocl::initializeContextFromD3D11Device (ID3D11Device *pD3D11Device) |
从D3D11设备创建OpenCL上下文。 | |
Context | cv::directx::ocl::initializeContextFromDirect3DDevice9 (IDirect3DDevice9 *pDirect3DDevice9) |
从Direct3DDevice9设备创建OpenCL上下文。 | |
Context | cv::directx::ocl::initializeContextFromDirect3DDevice9Ex (IDirect3DDevice9Ex *pDirect3DDevice9Ex) |
从Direct3DDevice9Ex设备创建OpenCL上下文。 | |
void cv::directx::convertFromD3D10Texture2D | ( | ID3D10Texture2D * | pD3D10Texture2D, |
OutputArray | dst ) |
#include <opencv2/core/directx.hpp>
将ID3D10Texture2D转换为OutputArray。
pD3D10Texture2D | - 源D3D10纹理 |
dst | - 目标OutputArray |
void cv::directx::convertFromD3D11Texture2D | ( | ID3D11Texture2D * | pD3D11Texture2D, |
OutputArray | dst ) |
#include <opencv2/core/directx.hpp>
将ID3D11Texture2D转换为OutputArray。如果输入纹理格式为DXGI_FORMAT_NV12,则数据将被上采样并颜色转换为BGR格式。
pD3D11Texture2D | - 源D3D11纹理 |
dst | - 目标OutputArray |
void cv::directx::convertFromDirect3DSurface9 | ( | IDirect3DSurface9 * | pDirect3DSurface9, |
OutputArray | dst, | ||
void * | surfaceSharedHandle = NULL ) |
#include <opencv2/core/directx.hpp>
将IDirect3DSurface9转换为OutputArray。
pDirect3DSurface9 | - 源D3D10纹理 |
dst | - 目标OutputArray |
surfaceSharedHandle | - 共享句柄 |
void cv::directx::convertToD3D10Texture2D | ( | InputArray | src, |
ID3D10Texture2D * | pD3D10Texture2D ) |
#include <opencv2/core/directx.hpp>
将InputArray转换为ID3D10Texture2D。
src | - 源InputArray |
pD3D10Texture2D | - 目标D3D10纹理 |
void cv::directx::convertToD3D11Texture2D | ( | InputArray | src, |
ID3D11Texture2D * | pD3D11Texture2D ) |
#include <opencv2/core/directx.hpp>
将InputArray转换为ID3D11Texture2D。如果目标纹理格式为DXGI_FORMAT_NV12,则预期输入UMat为BGR格式,数据将被下采样并颜色转换为NV12。
src | - 源InputArray |
pD3D11Texture2D | - 目标D3D11纹理 |
void cv::directx::convertToDirect3DSurface9 | ( | InputArray | src, |
IDirect3DSurface9 * | pDirect3DSurface9, | ||
void * | surfaceSharedHandle = NULL ) |
#include <opencv2/core/directx.hpp>
将InputArray转换为IDirect3DSurface9。
src | - 源InputArray |
pDirect3DSurface9 | - 目标D3D10纹理 |
surfaceSharedHandle | - 共享句柄 |
int cv::directx::getTypeFromD3DFORMAT | ( | const int | iD3DFORMAT | ) |
#include <opencv2/core/directx.hpp>
从DirectX类型获取OpenCV类型。
iD3DFORMAT | - D3D9的枚举D3DTYPE |
int cv::directx::getTypeFromDXGI_FORMAT | ( | const int | iDXGI_FORMAT | ) |
#include <opencv2/core/directx.hpp>
从DirectX类型获取OpenCV类型。
iDXGI_FORMAT | - D3D10/D3D11的枚举DXGI_FORMAT |
Context & cv::directx::ocl::initializeContextFromD3D10Device | ( | ID3D10Device * | pD3D10Device | ) |
#include <opencv2/core/directx.hpp>
从D3D10设备创建OpenCL上下文。
pD3D10Device | - 指向D3D10设备的指针 |
Context & cv::directx::ocl::initializeContextFromD3D11Device | ( | ID3D11Device * | pD3D11Device | ) |
#include <opencv2/core/directx.hpp>
从D3D11设备创建OpenCL上下文。
pD3D11Device | - 指向D3D11设备的指针 |
Context & cv::directx::ocl::initializeContextFromDirect3DDevice9 | ( | IDirect3DDevice9 * | pDirect3DDevice9 | ) |
#include <opencv2/core/directx.hpp>
从Direct3DDevice9设备创建OpenCL上下文。
pDirect3DDevice9 | - 指向Direct3Device9设备的指针 |
Context & cv::directx::ocl::initializeContextFromDirect3DDevice9Ex | ( | IDirect3DDevice9Ex * | pDirect3DDevice9Ex | ) |
#include <opencv2/core/directx.hpp>
从Direct3DDevice9Ex设备创建OpenCL上下文。
pDirect3DDevice9Ex | - 指向Direct3DDevice9Ex设备的指针 |