00. 目录

文章目录

  • 00. 目录
  • 01. 概述
  • 02. 签名
  • 03. 描述
  • 04. 注意
  • 05. 参数
  • 06. 结果
  • 07. 附录

01. 概述

dev_set_part - 修改要显示的图像部分。

02. 签名

dev_set_part( : : Row1, Column1, Row2, Column2 : )

03. 描述

dev_set_part用于设置图形窗口中要显示的图像部分。 参数Row1和Column1指定左上角,Row2和Column2指定要显示的图像部分的右下角。

有关更多信息,请参阅算子set_part的说明。 另外,如果Row1比Row2大或Column1比Column2大,那么特定尺寸缩放将被重置,以显示图像的完整高度(和/或)宽度。 请注意,对于在HDevelop环境以外的此算子和算子set_part,此功能无效。

另外,请注意,如果加载新程序,程序复位或显示图像尺寸大小不同的新图像,则会自动复位显示部分。

原文描述

dev_set_part is used to set the part of the image that is displayed in the graphics window. The parameters Row1 and Column1 specify the upper left corner, Row2 and Column2 the lower right corner of the image part to display.

For more information see the description of the operator set_part. In addition, if Row1 is larger than Row2 or Column1 larger than Column2, the zooming in the particular dimension will be reset to show the complete height and/or width of the image. Please note that this is not possible with the operator set_part outside HDevelop.

In addition, note that the part is automatically reset, if a new program is loaded, a program reset is performed, or a new image with a different image size is displayed.

04. 注意

使用HDevelop的代码导出功能,为该算子生成的代码可能与相关的HALCON算子具有不同的行为。 有关将HDevelop图形算子导出为不同编程语言的代码的详细说明,请参阅“HDevelop User’s Guide”中的 Code Export -> General Aspects of Code Generation -> Graphics Windows一章。

05. 参数

Row1 (input_control)   rectangle.origin.y → (integer)

Row of the upper left corner of the chosen image part.
  Default value: 0

Column1 (input_control)    rectangle.origin.x → (integer)
  Column of the upper left corner of the chosen image part.
  Default value: 0*

Row2 (input_control)    rectangle.corner.y → (integer)
  Row of the lower right corner of the chosen image part.
  Default value: 128*

Column2 (input_control) rectangle.corner.x → (integer)
  Column of the lower right corner of the chosen image part.
  Default value: 128*

HDevelop例程

roads.hdev Extract roads from aerial image
rim.hdev Inspect holes and characters on a rim
pm_measure_board.hdev Locate IC on a board and measure pin distances
measure_screw.hdev Measure several features of a screw
fit_ellipse_tooth_rim_xld.hdev Approximate the contour of a tooth rim with an ellipse to find its center
fill_interlace.hdev Interpolate video half images
edges_color_sub_pix.hdev Extract edges with sub-pixel precision using color information
edges_color.hdev Extract edges using color information
display_operators.hdev Visualize results
dev_set_part.hdev Set the part of an image to be displayed (zoomed) in a graphics window in HDevelop
dev_open_window.hdev Open graphics windows in HDevelop
critical_points_sub_pix.hdev Detect critical points with subpixel accuracy
clip_contours_xld.hdev Clip an XLD contour

程序示例

read_image (Image, 'fabrik')
for i := 1 to 240 by 10dev_set_part (i, i, 511-i, 511-i)dev_display (Image)
endfor
dev_set_part (1, 1, -1, -1)
dev_display (Image)

06. 结果

如果指定参数的值正确,则dev_set_paint返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。

07. 附录

7.1 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497

【机器视觉】 dev_set_part算子相关推荐

  1. 机器视觉 边缘检测算子

    1.实验目的 利用opencv python实现对下图实现边缘检测算子. 2.实验过程 (1)在python安装opencv库, pip install opencv-python. (2)在pyth ...

  2. 【机器视觉】机器视觉博客汇总

    00. 目录 文章目录 00. 目录 01. 机器视觉概述 02. 机器视觉环境搭建 03. Halcon初级教程 04. Halcon中级教程 05. Halcon高级教程 06. Halcon与Q ...

  3. 拉普拉斯噪声公式_高斯拉普拉斯算子(Laplace of Gaussian)

    高斯拉普拉斯(Laplace of Gaussian) Laplace算子作为一种优秀的边缘检测算子,在边缘检测中得到了广泛的应用.该方法通过对图像 求图像的二阶倒数的零交叉点来实现边缘的检测,公式表 ...

  4. Halcon+C#显示一张图片

    https://blog.csdn.net/horsee/article/details/77774538 感受:趟了几个雷,摸到几块石头,知其然不知其所以然,聊以记录,为后人享.欲知其所以然,还是得 ...

  5. 【机器视觉】 dev_set_window_extents算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 dev_set_window_extents - ...

  6. 【机器视觉】 dev_open_window算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 dev_open_window - 打开一个新的图 ...

  7. 【机器视觉】 dev_display算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 dev_display - 在当前图形窗口中显示图 ...

  8. python 视觉技术_python+opencv实现机器视觉基础技术(边缘提取,图像滤波,边缘检测算子,投影,车牌字符分割)...

    机器视觉是人工智能正在快速发展的一个分支.简单说来,机器视觉就是用机器代替人眼来做测量和判断.它是一项综合技术,包括图像处理.机械工程技术.控制.电光源照明.光学成像.传感器.模拟与数字视频技术.计算 ...

  9. 【机器视觉】 write_measure算子

    00. 目录 文章目录 00. 目录 01. 概述 02. 签名 03. 描述 04. 注意 05. 参数 06. 结果 07. 附录 01. 概述 write_measure - 将measure对 ...

最新文章

  1. hadoop常用命令之hdfs
  2. Mathematica基础——Part——[[]]
  3. RabbitMQ支持的消息模型
  4. MM的Windows 7 登录密码忘记之后
  5. MySQL-8.0.12-winx64
  6. ARMA模型的性质之ARMA模型
  7. makefile中=、:=和+=的区别
  8. springboot电子阅览室app毕业设计源码016514
  9. 为什么人家每天睡觉是自然醒,我每天是穷醒?
  10. 游戏开发 打造基于Excel表格数据驱动系统
  11. 2021边缘保研经历(整个大三),川大 - 浙大软院
  12. Hazelcast Jet Pipeline详解
  13. 抠图技术及方法简介(Image Matting Overview)
  14. mysql c盘满了 怎么办_C盘满了如何清理
  15. ViewPager简单介绍(一)
  16. 江苏移动MGV3000-YS(S)/YS(M)-S905L3卡刷和线刷固件包
  17. 基于于berkeleydb+qt的智能语音电话薄管理系统
  18. 现在很多网友崇拜科学家,反对宣扬戏子,这是什么心态?
  19. 迅为4418开发板Linux系统修改和固定MAC地址
  20. Cisco简单配置(十八)—OSPF

热门文章

  1. Atitit.rust语言特性 attilax 总结
  2. C#实现Base64编码与解码
  3. mysql数据库的环境搭建_数据库学习(一)MySql环境搭建
  4. java定义一个door的类_再探Java抽象类与接口的设计理念差异
  5. 如何确定电脑主板坏了_【不良资产 】(第1422期)银行在打包不良资产出售之前,会如何处置不良资产?...
  6. 【数据结构】之算法和算法评价
  7. 计算机入会大会新生发言稿,新生大会发言稿(精选3篇)
  8. 封装、继承、多态的理解
  9. 一次利用位图索引进行SQL优化的案例
  10. 从 0 到 1 实现 React 系列 —— 4.setState优化和ref的实现