【机器视觉】 stop算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
stop - 停止程序執行。
02. 簽名
stop( : : : )
03. 描述
stop算子停止HDevelop程序的連續程序執行。 如果發生這種情況,即使下面有大量的注釋或其他不可執行的程序行,PC(程序計數器)仍停留在stop語句(而不是放在下一個可執行程序行),以便直接顯示程序中斷的原因。
算子相當于菜單欄中的stop行動(F9)。 程序可以通過run(F5)繼續。
可以通過在首選項對話框(preferences dialog)中設置時間參數來重新定義行為。 執行不會停止,而是在等待指定的時間段后繼續執行。 在這段時間內,程序可以被F9中斷或者由一個運行命令繼續。 這由程序窗口第一列中的圖標標記。
原文描述:
The stop operator stops the continuous program execution of the HDevelop program. If this happens the PC remains on the stop statement (instead of being placed at the next executable program line) in order to show directly the reason for the program interruption even if numerous comments or other not executable program lines follow.
The operator is equivalent to the Stop action (F9) in the menu bar. The program can easily be continued by the Run action (F5).
It is possible to redefine the behavior by setting a time parameter in the preferences dialog. The execution will not stop but continue after waiting the specified period of time. Within this period of time the program can be interrupted by F9 or continued by one of the run commands. This is marked by an icon in the first column of the program window.
04. 注意
此算子不支持代碼導出。
05. 參數
無
06. 結果
如果程序在stop語句處停止,則保留前一個算子的返回狀態。 如果程序繼續一個stop算子,stop總是返回2(H_MSG_TRUE)。
HDevelop例程
stop.hdev Stop the execution in a loop to view intermediate results
for.hdev Use a for loop to iterate over extracted blobs
display_operators.hdev Visualize results
crystal.hdev Extract hexagonally shaped crystals via local thresholding and region post-processing
comment.hdev Use comments and verbatim code export
程序示例
read_image (Image, 'fabrik') regiongrowing (Image, Regions, 3, 3, 6, 100) count_obj (Regions, Number) dev_update_window ('off') for i := 1 to Number by 1select_obj (Regions, RegionSelected, i)dev_clear_window ()dev_display (RegionSelected)stop () endfor07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 stop算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 return算子
- 下一篇: 【机器视觉】 throw算子