Skip to content

image_to_channelsImageToChannelsImageToChannelsimage_to_channelsimage_to_channels🔗

Short description🔗

image_to_channelsImageToChannelsImageToChannelsimage_to_channelsimage_to_channels — Convert a multi-channel image into One-channel images

Signature🔗

image_to_channels( image MultiChannelImage, out image Images )void ImageToChannels( const HObject& MultiChannelImage, HObject* Images )static void HOperatorSet.ImageToChannels( HObject multiChannelImage, out HObject images )def image_to_channels( multi_channel_image: HObject ) -> HObject

Herror image_to_channels( const Hobject MultiChannelImage, Hobject* Images )

Herror T_image_to_channels( const Hobject MultiChannelImage, Hobject* Images )

HImage HImage::ImageToChannels( ) const

HImage HImage.ImageToChannels( )

Description🔗

The operator image_to_channelsImageToChannels generates a one-channel image for each channel of the multi-channel image in MultiChannelImagemultiChannelImagemulti_channel_image. The definition domains are adopted from the input image. As many images are created as MultiChannelImagemultiChannelImagemulti_channel_image has channels. No new storage is allocated for the output images. Instead, the created images contain references to the existing input image channels.

Execution information🔗

Execution information
  • 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.

Parameters🔗

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

Multi-channel image to be decomposed.

Imagesimagesimages (output_object) singlechannelimage-array → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Generated one-channel images.

Combinations with other operators🔗

Combinations

Possible predecessors

count_channelsCountChannels

Possible successors

disp_imageDispImage

Alternatives

access_channelAccessChannel, decompose2Decompose2, decompose3Decompose3, decompose4Decompose4, decompose5Decompose5

See also

channels_to_imageChannelsToImage

Module🔗

Foundation