机器视觉 executable_expression算子
Posted 沧海一笑-dj
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了机器视觉 executable_expression算子相关的知识,希望对你有一定的参考价值。
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 vector
ImageVector.clear()
07. 附录
7.1 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497
以上是关于机器视觉 executable_expression算子的主要内容,如果未能解决你的问题,请参考以下文章