Operators |
count_channels — Count channels of image.
count_channels(MultiChannelImage : : : Channels)
The operator count_channels counts the number of channels of all input images.
One- or multi-channel image.
Number of channels.
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_channel, append_channel, disp_image
append_channel, access_channel
Foundation
Operators |