zoukankan      html  css  js  c++  java
  • 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接口(查询并使用所有支持的相机类型)

  • 相关阅读:
    "上传"组件:<upload> —— 快应用组件库H-UI
    Xcode免证书调试
    iOS-OC-基本控件之UIPageControl
    关于装完系统出现a disk read error occurred的解决方法
    iOS-OC-基本控件之UITextField
    windows常用快捷键
    制作无广告启动盘
    自制垃圾批处理软件
    学习总结
    如何将BroadcastReceiver中的信息传到Activity中
  • 原文地址:https://www.cnblogs.com/xhiong/p/count_channels.html
Copyright © 2011-2022 走看看