【机器视觉】 executable_expression算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數(shù)
- 06. 結(jié)果
- 07. 附錄
01. 概述
executable_expression - 執(zhí)行獨(dú)立的算子。
02. 簽名
executable_expression( : : Expression : )
03. 描述
HDevelop語(yǔ)言包含一些表達(dá)式,不僅返回一個(gè)返回值,而且修改它們的輸入變量。 使用executable_expression,可以以類似于算子的方式執(zhí)行這些表達(dá)式。
目前,這些是向量表達(dá)式’.clear()’,’.insert()‘和’.remove()’。 有關(guān)更多詳細(xì)信息,請(qǐng)參閱HDevelop用戶指南。
盡管Expression在形式上是一個(gè)控制參數(shù),但是也可以執(zhí)行圖像表達(dá)式。 但是,Expression是一個(gè)修改表達(dá)式。
原文描述:
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. 參數(shù)
Expression (input_control) number-vector → (real / integer / string)
要執(zhí)行的表達(dá)式
06. 結(jié)果
如果指定參數(shù)的值正確,則executable_expression返回2(H_MSG_TRUE)。 否則會(huì)引發(fā)異常并返回錯(cuò)誤代碼。
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 機(jī)器視覺(jué)博客匯總
網(wǎng)址:https://dengjin.blog.csdn.net/article/details/116837497
總結(jié)
以上是生活随笔為你收集整理的【机器视觉】 executable_expression算子的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 【机器视觉】 convert_vecto
- 下一篇: 【机器视觉】 exit算子