zoukankan      html  css  js  c++  java
  • halcon算子翻译——gen_image_surface_first_order

    名称

    gen_image_surface_first_order - 使用一阶多项式创建倾斜的灰色曲面。

    用法

    gen_image_surface_first_order( : ImageSurface : Type, Alpha, Beta, Gamma, Row, Column, Width, Height : )

    描述

    算子gen_image_surface_first_order根据以下公式创建倾斜的灰度值曲面:

    ImageSurface(r,c) = Alpha(r - Row) +Beta(c - Column) +Gamma

    图像的大小由Width和Height决定。 参数Row和Column定义创建的灰色曲面的参考点。 灰色值的类型为Type(有关像素类型的详细说明,请参阅gen_image_const)。 有效区域外的灰度值会被剪切。

    并行

    ●  多线程类型:可重入(与非独占算子并行运行)。
    ●  多线程范围:全局(可以从任何线程调用)。
    ●  不并行化处理。

    参数

    ImageSurface (output_object)   image → object (byte / uint2 / real)
      新创建的图像矩阵。


    Type (input_control)    string → (string)
      像素类型
      Default value: 'byte'
      List of values: 'byte', 'real', 'uint2'


    Alpha (input_control)    number → (real)
      垂直方向的一阶系数。
      Default value: 1.0
      Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
      Minimum increment: 0.000001
      Recommended increment: -0.005


    Beta (input_control)    number → (real)
      水平方向上的一阶系数。
      Default value: 1.0
      Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
      Minimum increment: 0.000001
      Recommended increment: -0.005


    Gamma (input_control)    number → (real)
      零阶系数。
      Default value: 1.0
      Suggested values: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0
      Minimum increment: 0.000001
      Recommended increment: -0.005


    Row (input_control)    number → (real)
      曲面参考点的行坐标。
      Default value: 256.0
      Suggested values: 0.0, 128.0, 256.0, 512.0
      Minimum increment: 0.000001
      Recommended increment: -0.005


    Column (input_control)    number → (real)
      曲面参考点的列坐标。
      Default value: 256.0
      Suggested values: 0.0, 128.0, 256.0, 512.0
      Minimum increment: 0.000001
      Recommended increment: -0.005


    Width (input_control)    extent.x → (integer)
      图像宽度。
      Default value: 512
      Suggested values: 128, 256, 512, 1024
      Typical range of values: 1 ≤ Width ≤ 512 (lin)
      Minimum increment: 1
      Recommended increment: 10
      Restriction: Width >= 1


    Height (input_control)    extent.y → (integer)
      图像高度。
      Default value: 512
      Suggested values: 128, 256, 512, 1024
      Typical range of values: 1 ≤ Height ≤ 512 (lin)
      Minimum increment: 1
      Recommended increment: 10
      Restriction: Height >= 1

    结果

    如果参数值正确,则gen_image_surface_first_order返回值2(H_MSG_TRUE)。 否则会引发异常。

    Possible Predecessors

    fit_surface_first_order

    Possible Successors

    sub_image

    See also

    gen_image_gray_ramp, gen_image_surface_second_order, gen_image_const

    模块

    Foundation

    HDevelop例程

     

  • 相关阅读:
    R语言做文本挖掘 Part4文本分类
    在VS2005中使用原来的IIS调试Web程序(像VS2003一样)
    “提高一下dotnet程序的效率一”中关于exception的问题
    asp.net Cookies 转码的问题 中文丢失
    静态构造函数
    js在firefox中的问题
    模板引擎的一种实现
    .NET面试题,看看你的水平[转]
    转载 软件架构师应该具备的素质(Enterprise Solution Architects and Leadership)
    用正则表达式提取url中的Querystring参数
  • 原文地址:https://www.cnblogs.com/xhiong/p/gen_image_surface_first_order.html
Copyright © 2011-2022 走看看