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

    名称

    gen_image_proto - 使用指定的常量灰度值创建图像。

    用法

    gen_image_proto(Image : ImageCleared : Grayval : )

    描述

      gen_image_proto创建一个带常量灰度值Grayval的输出图像ImageCleared。 如果输入图像是'direction'类型,则结果图像中不在'direction'图像有效值范围内的灰度值将被设置为值255,以将其标记为无效。ImageCleared与输入图像Image具有相同的尺寸和像素类型。

    并行

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

    参数

    Image (input_object)   singlechannelimage → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
      输入图像。


    ImageCleared   (output_object) image → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
      常量灰度值图像。


    Grayval (input_control)    number → (real / integer)
      要用于输出图像的灰度值。
      Default value: 0
      Suggested values: 0, 1, 2, 5, 10, 16, 32, 64, 128, 253, 254, 255

    结果

    如果所有参数都正确,则gen_image_proto返回2(H_MSG_TRUE)。 如有必要,会引发异常。

    Alternatives

    set_grayval, paint_gray, gen_image_const, copy_image

    See also

    get_image_pointer1

    模块

    Foundation

    HDevelop例程

     

  • 相关阅读:
    PAT 1038. 统计同成绩学生
    PAT 1037. 在霍格沃茨找零钱
    PAT 1036. 跟奥巴马一起编程
    PAT 1035. 插入与归并
    PAT 1034. 有理数四则运算
    PAT 1033.旧键盘打字
    [转载]信号处理基础知识——加窗windowing
    On the use of spectrogram function in matlab
    [转载]【MATLAB】pwelch函数的相关参数解释
    [转载]时频特性分析(Matlab)
  • 原文地址:https://www.cnblogs.com/xhiong/p/gen_image_proto.html
Copyright © 2011-2022 走看看