• 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

  • 相关阅读:
    Code First Migrations更新数据库结构(数据迁移) 【转】
    Lambda表达式详解【转】
    @Html.Raw用法
    ASP.NET MVC文件上传【转】
    SQL Server附加数据库拒绝访问错误解决方法
    window.location.href的用法
    vs2013中将复制过来的文件或文件夹显示到解决方案管理
    Expression<Func<TObject, bool>>与Func<TObject, bool>的区别
    VS中的一些标记
    ob_get_contents()
  • 原文地址:https://www.cnblogs.com/xhiong/p/7831612.html
Copyright © 2020-2023  润新知