天天看点

【机器视觉】 default算子

00. 目录

01. 概述

02. 签名

03. 描述

04. 注意

05. 参数

06. 结果

07. 附录

default - switch段中的默认分支。

<code>default( : : : )</code>

default在switch段中开放备用分支。 如果switch语句的控制表达式的计算结果不匹配前面的case语句的任何整数常量,则访问该分支。

原文描述:

default opens an alternative branch in a switch block. this branch is accessed if the calculated control expression of the switch statement does not match any of the integer constants of the previous case statements.

default(作为算子)总是返回2(h_msg_true)。

hdevelop例程

switch_case.hdev use switch/case statement for a multiway branch

程序示例<code></code>