| HALCON Reference Manual / Image / Channel | Operators |
count_channels — Count channels of image.
count_channels(MultiChannelImage : : : Channels)
The operator count_channels counts the number of channels of all input images.
| MultiChannelImage (input_object) | (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field) |
| One- or multichannel image. | |
| Channels (output_control) | integer(-array) → (integer) |
| 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);
}
count_channels is reentrant and processed without parallelization.
access_channel, append_channel, disp_image
append_channel, access_channel
Foundation
| HALCON Reference Manual / Image / Channel | Operators |
| Version 9.0.2 | Copyright © 1996-2010 MVTec Software GmbH |