Name
count_channelscount_channelsCountChannelscount_channelsCountChannelsCountChannels — Count channels of image.
The operator count_channelscount_channelsCountChannelscount_channelsCountChannelsCountChannels counts the number of
channels of all input images.
- Supports objects on compute devices.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
One- or multi-channel image.
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);
}
access_channelaccess_channelAccessChannelaccess_channelAccessChannelAccessChannel,
append_channelappend_channelAppendChannelappend_channelAppendChannelAppendChannel,
disp_imagedisp_imageDispImagedisp_imageDispImageDispImage
append_channelappend_channelAppendChannelappend_channelAppendChannelAppendChannel,
access_channelaccess_channelAccessChannelaccess_channelAccessChannelAccessChannel
Foundation