![]() |
OpenCV 4.12.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 的 enum D3DTYPE |
| int cv::directx::getTypeFromDXGI_FORMAT | ( | const int | iDXGI_FORMAT | ) |
#include <opencv2/core/directx.hpp>
從 DirectX 型別獲取 OpenCV 型別。
| iDXGI_FORMAT | - D3D10/D3D11 的 enum 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 裝置的指標 |