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接口(查询并使用所有支持的相机类型)

posted @ 2017-12-22 16:54  水行  阅读(899)  评论(0)    收藏  举报