Name
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice — Activate a compute device.
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice activates the compute device
DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle for the current HALCON thread.
All subsequent HALCON operators called in this thread are executed on
DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle if they provide an implementation
(see get_operator_infoget_operator_infoGetOperatorInfoget_operator_infoGetOperatorInfoGetOperatorInfo) for this device.
Use deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDevicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevice to deactivate
DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle.
Currently, only one compute device can be active for a HALCON thread.
If a different device is active before activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice
is called, this device is deactivated automatically.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
- Processed without parallelization.
open_compute_device (DeviceIdentifier, DeviceHandle)
read_image (Image, 'rings_and_nuts')
*
* Gaussian convolution on a compute device
activate_compute_device (DeviceHandle)
derivate_gauss (Image, DerivGauss, 5, 'none')
*
* Gaussian convolution on the CPU
deactivate_compute_device (DeviceHandle)
derivate_gauss (Image, DerivGauss, 5, 'none')
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice returns the value
2 (H_MSG_TRUE) if DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle is valid. Otherwise
an exception will be raised.
open_compute_deviceopen_compute_deviceOpenComputeDeviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice
deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDevicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevice,
deactivate_all_compute_devicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesdeactivate_all_compute_devicesDeactivateAllComputeDevicesDeactivateAllComputeDevices
Foundation