zoukankan      html  css  js  c++  java
  • Halcon算子翻译——if

    名称

    if - 条件语句。

    用法

    if( : : Condition : )

    描述

      if是一个条件语句,启动一个if分段。 Condition参数必须计算为布尔值或整数表达式。

      如果Condition判断为'true'(非0),则执行它下面的分段直到下一个相应的分段语句elseif,else或endif。 到达分段的结尾处时,在相应的endif语句之后继续运行。

      如果Condition判断为''false(0),则继续执行下一个相应的分段语句elseif,else或endif。

    参数

    Condition (input_control) integer → (integer)
    if语句的条件。
    默认值: 1

    结果

    如果条件正确,if(作为算子)返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。

    备选算子

    elseif, else

    See also

    for, while, until

    模块

    Foundation

    HDevelop例程

    print_check.hdev            Perform a typical print quality inspection using a variation model
    point_line_to_hom_mat2d.hdev       Align image based on point-to-line correspondences for print quality inspection with a variation model
    pm_illu.hdev                   Apply online pattern matching using a gray-value template that adapts to illumination changes
    cbm_caliper.hdev           Measure the setting of a caliper using component-based matching in a perspectively distorted image
    cbm_bin_switch.hdev          Locate a switch and test its state using component-based matching
    best_match_rot_mg_clip1.hdev    Find position and orientation of clips using a gray-value template
    3d_position_of_rectangle.hdev       Estimate 3D pose of rectangular objects

  • 相关阅读:
    NOIP模拟 1
    wlan
    IS-IS IGP
    linux 基础 软件的安装 *****
    第五部分 linux 软件安装RPM SRPM与YUM
    第四部分 linux使用者管理
    添加rpmforge源 centos 7
    x86 保护模式 十 分页管理机制
    X86保护模式 八操作系统类指令
    poj2230 Watchcow【欧拉回路】【输出路径】(遍历所有边的两个方向)
  • 原文地址:https://www.cnblogs.com/xhiong/p/7831612.html
Copyright © 2011-2022 走看看