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

  • 相关阅读:
    C#读写xml文件
    实现SQL_SERVER的双机实时备份
    Microsoft .NET Pet Shop 4 架构与技术分析
    xp系统运行asp.net时候出现“服务器应用程序不可用”的必杀
    获取服务器根域名
    C#如何创建Xml文件
    用C#创建XML[简单代码]
    关闭Viewstate
    数字签名
    IE插件
  • 原文地址:https://www.cnblogs.com/xhiong/p/7831612.html
Copyright © 2011-2022 走看看