| Operatoren |
activate_compute_device — Aktivieren eines Compute Devices.
activate_compute_device( : : DeviceHandle : )
activate_compute_device aktiviert das Compute Device DeviceHandle für den aktuellen HALCON Thread. Alle folgenden Aufrufe von HALCON Operatoren in diesem Thread werden auf DeviceHandle ausgeführt, sofern sie über eine entsprechende Implementierung (get_operator_info) verfügen. Mit deactivate_compute_device kann DeviceHandle wieder deaktiviert werden.
Gegenwärtig kann pro Thread nur ein Compute Device aktiv sein. Ist vor dem Aufruf von activate_compute_device bereits ein anderes Device aktiv, wird dieses automatisch deaktiviert.
Compute Device Handle.
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')
Ist DeviceHandle gültig, gibt activate_compute_device den Wert 2 (H_MSG_TRUE) zurück. Andernfalls wird eine Fehlerbehandlung durchgeführt.
deactivate_compute_device, deactivate_all_compute_devices
Foundation
| Operatoren |