• halcon算子翻译——count_channels


    名称

    count_channels - 计算图像的通道。

    用法

    count_channels(MultiChannelImage : : : Channels)

    描述

    算子count_channels计算所有输入图像的通道数量。

    并行

    ●  支持计算设备上的对象。

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

    参数

    MultiChannelImage (input_object)   (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
      单通道或多通道图像。


    Channels (output_control)    integer(-array) → (integer)
      通道数量

    Example (C)

    read_image(&Color,"patras");
    count_channels(Color,&num_channels);
    for (i=1; i<=num_channels; i++)
    {
      access_channel(Color,&Channel,i);
      disp_image(Channel,WindowHandle);
      clear_obj(Channel);
    }

    Possible Successors

    access_channel, append_channel, disp_image

    See also

    append_channel, access_channel

    模块

    Foundation

    HDevelop例程

    simultaneous_grabbing.hdev     两台相机同时采集
    sick-3dcamera_components.hdev     使用SICK-3DCamera接口(不同的参数组)
    ginga++_sequence.hdev       使用Ginga ++接口(顺序采集)
    ginga++_capture_freq.hdev       使用Ginga ++接口(采集频率控制)
    1394iidc_camera_types.hdev     使用1394iidc接口(查询并使用所有支持的相机类型)

  • 相关阅读:
    材料订单不在IN_MO或者IN_SCFHEADER中
    FP ABPPMGR表 其它常用存储过程
    ORA-01578 ORACLE data block corrupted (file # 29, block # 2889087)
    PR合并回写
    MySQL优化
    分享一些JVM常见的面试题(转)
    怎么保证 redis 和 db 中的数据一致
    User space(用户空间) 与 Kernel space(内核空间)
    如何设计一个安全的对外接口?(转)
    Jstack命令详解
  • 原文地址:https://www.cnblogs.com/xhiong/p/count_channels.html
Copyright © 2020-2023  润新知