Name
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice — Aktivieren eines Compute Devices.
activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice aktiviert das Compute Device
DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle für den aktuellen HALCON Thread.
Alle folgenden Aufrufe von HALCON Operatoren in diesem Thread werden auf
DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle ausgeführt, sofern sie über eine entsprechende
Implementierung (get_operator_infoget_operator_infoGetOperatorInfoget_operator_infoGetOperatorInfoGetOperatorInfo) verfügen.
Mit deactivate_compute_devicedeactivate_compute_deviceDeactivateComputeDevicedeactivate_compute_deviceDeactivateComputeDeviceDeactivateComputeDevice kann DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle wieder
deaktiviert werden.
Gegenwärtig kann pro Thread nur ein Compute Device aktiv sein. Ist
vor dem Aufruf von activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice bereits ein anderes
Device aktiv, wird dieses automatisch deaktiviert.
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: local (kann nur von dem Thread aufgerufen werden, in dem die Fenster-, Modell- oder Tool-Instanz erzeugt wurde).
- Wird ohne Parallelisierung verarbeitet.
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 DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle gültig, gibt activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice
den Wert 2 (H_MSG_TRUE) zurück.
Andernfalls wird eine Fehlerbehandlung durchgeführt.
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