日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【机器视觉】 stop算子

發布時間:2024/4/24 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【机器视觉】 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 () endfor

07. 附錄

7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497

總結

以上是生活随笔為你收集整理的【机器视觉】 stop算子的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。