【机器视觉】 executable_expression算子
发布日期:2021-06-29 20:52:53 浏览次数:2 分类:技术文章

本文共 1435 字,大约阅读时间需要 4 分钟。

00. 目录

文章目录

01. 概述

executable_expression - 执行独立的算子。

02. 签名

executable_expression( : : Expression : )

03. 描述

HDevelop语言包含一些表达式,不仅返回一个返回值,而且修改它们的输入变量。 使用executable_expression,可以以类似于算子的方式执行这些表达式。

目前,这些是向量表达式’.clear()’,’.insert()‘和’.remove()’。 有关更多详细信息,请参阅HDevelop用户指南。

尽管Expression在形式上是一个控制参数,但是也可以执行图像表达式。 但是,Expression是一个修改表达式。

原文描述

The HDevelop language contains a few operations that are executed stand-alone, i.e., not as an expression within another operator call. The operator executable_expression allows to enter such stand-alone operations into the operator window of HDevelop. In the full text editor however, those operations are entered verbatim.

Currently, the following modifying vector operations are stand-alone and can only be used in an executable expression:

.clear()

.insert()

.remove()

For further details about these operations please refer to the HDevelop User’s Guide.

Even though Expression formally is presented as a control parameter, nonetheless it is also possible to execute stand-alone operations with iconic vectors.

04. 注意

05. 参数

Expression (input_control)   number-vector → (real / integer / string)

要执行的表达式

06. 结果

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

HDevelop例程

vector_variables.hdev Use vector variables

程序示例

read_image (Image1, 'fin1')read_image (Image2, 'fin2')ImageVector.insert(1, Image1).insert(2, Image2)* process vectorImageVector.clear()

07. 附录

7.1 机器视觉博客汇总

网址:

转载地址:https://dengjin.blog.csdn.net/article/details/117934264 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:【机器视觉】 exit算子
下一篇:【机器视觉】 convert_vector_to_tuple算子

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月13日 01时08分42秒