QQ登录

只需一步,快速开始

工业视觉halcon compute device函数详细介绍

[ 复制链接 ]

工业视觉halcon compute device函数详细介绍

工业视觉halcon compute device函数详细介绍

Halcon有提供针对图像计算硬件的操作函数,
这些硬件更多的是显卡硬件,显卡提供有API用于图像加速处理。
所以halcon提供的这些函数可以利用显卡,加速图像的处理。
这些函数有
query_available_compute_devices
get_compute_device_info
open_compute_device
set_compute_device_param
get_computer_device_param
init_compute_device
activate_compute_device
deactivate_compute_device
deactivate_all_compute_devices
release_compute_device
release_all_compute_devices

实例
read_image (Image, 'printer_chip/printer_chip_01')
count_seconds (Seconds)
for i:= 1 to 4 by 1
    rotate_image (Image, ImageRotate, 90, 'constant')
endfor
count_seconds (Seconds1)
time := Seconds1-Seconds
query_available_compute_devices (DeviceIdentifier)
get_compute_device_info (DeviceIdentifier[0], 'name', Info)
open_compute_device (DeviceIdentifier[0], DeviceHandle)
set_compute_device_param (DeviceHandle, 'asynchronous_execution', 'false')
get_compute_device_param (DeviceHandle, 'asynchronous_execution', GenParamValue)
init_compute_device (DeviceHandle, 'rotate_image')
activate_compute_device (DeviceHandle)
count_seconds (Seconds)
for i:= 1 to 4 by 1
    rotate_image (Image, ImageRotate, 90, 'constant')
endfor
count_seconds (Seconds1)
time1 := Seconds1-Seconds
stop()
deactivate_compute_device (DeviceHandle)
deactivate_all_compute_devices()
release_compute_device (DeviceHandle)
release_all_compute_devices ()
当前帖子为视频教程部分内容,
可以下载下边的halcon教程学习。
  

halcon从自学到接项目视频教程,另外再赠送全网最全资源  

  

欢迎围观我录制的一套halcon自学视频教程(进入)


  

上位机VC MFC程序开发精典实例大全源码与视频讲解配套下载408例

  

经历1年的编程与录制点击进入查看


  

如果您认可,可联系功能定制!

  

如果您着急,充值会员可直接联系发您资料!

  

QQ联系我

微信扫扫联系我

  



回复

使用道具 举报

点击查看
快速回复 返回列表 客服中心 搜索