halcon算子翻译——access_channel

名称

access_channel - 访问多声道图像的某一通道。

用法

access_channel(MultiChannelImage : Image : Channel : )

描述

  算子access_channel访问(多通道)输入图像的某一个通道。 结果是一个单通道图像。 已经定义的域(ROI)会继承。 通道编号从1到n。 通道的数量可以通过算子count_channels来确定。

并行

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

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

参数

MultiChannelImage (input_object)(multichannel-)  image → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

  多通道图像。


Image (output_object)    singlechannelimage → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
  MultiChannelImage的一个通道。


Channel (input_control)    channel → (integer)
  要访问的通道索引。
  Default value: 1
  Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
  Typical range of values: 1 ≤ Channel

Example (C)

read_image(&Color,"patras");   /* Farbbild einlesen */
access_channel(Color,&Red,1); /* Rotkanal extrahieren */
disp_image(Red,WindowHandle);

Possible Predecessors

count_channels

Possible Successors

disp_image

Alternatives

decompose2, decompose3, decompose4, decompose5

See also

count_channels

模块

Foundation

HDevelop例程

 

原文地址:https://www.cnblogs.com/xhiong/p/access_channel.html