【机器视觉】 break算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
break - 結束循環執行或跳出switch段。
02. 簽名
break( : : : )
03. 描述
break結束最近的for,while,或repeat…until循環。 另外,break語句用于離開switch段,特別是在一個case分支的結尾處。 程序跳出,繼續在隨后的程序行中執行(The program execution is continued at the program line following the corresponding block.)。
不在循環或switch段的break語句無效。
原文描述:
break terminates the smallest enclosing for, while, or repeat…until loop. In addition, the break statement is used to leave a switch block, in particular at the end of a case branch. The program execution is continued at the program line following the corresponding block.
break statements that are not enclosed by a loop or switch block are invalid.
04. 注意
無
05. 參數
無
06. 結果
break(作為算子)總是返回2(H_MSG_TRUE)。
HDevelop例程
two_camera_calibration.hdev Perform high precision mosaicking using a special calibration object
switch_case.hdev Use switch/case statement for a multiway branch
hand_eye_stationarycam_grasp_nut.hdev Calculate pose for grasping a nut based on results of hand-eye calibration for a stationary camera
camera_calibration_external.hdev Measure positions on a caliper rule using camera calibration
3d_matching_clamps.hdev Recognize 3D objects in images using a 3D DXF model
程序示例
read_image (Image, 'monkey') threshold (Image, Region, 160, 180) connection (Region, Regions) Number := |Regions| AllRegionsValid := 1 * check if for all regions area <=30 for i := 1 to Number by 1select_obj (Regions, ObjectSelected, i)area_center (ObjectSelected, Area, Row, Column)if (Area > 30)AllRegionsValid := 0breakendif endfor07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 break算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 throw算子
- 下一篇: 【机器视觉】 case算子