TesseractGetOpenCLDevice Method |
http://www.emgu.com
If compiled with OpenCL AND an available OpenCL
device is deemed faster than serial code, then
"device" is populated with the cl_device_id
and returns sizeof(cl_device_id)
otherwise *device=nullptr and returns 0.
Namespace:
Emgu.CV.OCR
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic int GetOpenCLDevice(
ref IntPtr device
)
Public Function GetOpenCLDevice (
ByRef device As IntPtr
) As Integer
public:
int GetOpenCLDevice(
IntPtr% device
)
member GetOpenCLDevice :
device : IntPtr byref -> int
Parameters
- device
- Type: SystemIntPtr
Pointer to the opencl device
Return Value
Type:
Int320 if no device found. sizeof(cl_device_id) if device is found.
See Also