access_channel访问通道access_channel访问通道AccessChannel访问通道AccessChannel访问通道access_channel访问通道 (算子)
名称
access_channel访问通道access_channel访问通道AccessChannel访问通道AccessChannel访问通道access_channel访问通道 — 访问多通道图像的通道。
签名
描述
算子 access_channelaccess_channelAccessChannelAccessChannelAccessChannelaccess_channel 访问(多通道)输入图像的一个通道。结果为单通道图像。采用输入的定义域。通道编号从 1 到 n。通道数量可通过算子 count_channelscount_channelsCountChannelsCountChannelsCountChannelscount_channels确定。
执行信息
- 支持计算设备上的对象。
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
MultiChannelImageMultiChannelImageMultiChannelImageMultiChannelImagemultiChannelImagemulti_channel_image (输入对象) (multichannel-)image → objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
多通道图像。
ImageImageImageImageimageimage (输出对象) singlechannelimage → objectHImageHObjectHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
多通道图像的一个通道。
ChannelChannelChannelChannelchannelchannel (输入控制) channel → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
要访问的通道索引。
默认值:
1
建议值:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
值范围:
1
≤
Channel
Channel
Channel
Channel
channel
channel
示例(C)
read_image(&Color,"patras"); /* read color image */
access_channel(Color,&Red,1); /* extract red channel */
disp_image(Red,WindowHandle);
可能的前趋
count_channelscount_channelsCountChannelsCountChannelsCountChannelscount_channels
可能的后继
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
替代
decompose2decompose2Decompose2Decompose2Decompose2decompose2,
decompose3decompose3Decompose3Decompose3Decompose3decompose3,
decompose4decompose4Decompose4Decompose4Decompose4decompose4,
decompose5decompose5Decompose5Decompose5Decompose5decompose5
另见
count_channelscount_channelsCountChannelsCountChannelsCountChannelscount_channels
模块
基础