Operator Reference

image_to_channelsimage_to_channelsImageToChannelsImageToChannelsimage_to_channels (Operator)

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

Signature

image_to_channels(MultiChannelImage : Images : : )

Herror image_to_channels(const Hobject MultiChannelImage, Hobject* Images)

Herror T_image_to_channels(const Hobject MultiChannelImage, Hobject* Images)

void ImageToChannels(const HObject& MultiChannelImage, HObject* Images)

HImage HImage::ImageToChannels() const

static void HOperatorSet.ImageToChannels(HObject multiChannelImage, out HObject images)

HImage HImage.ImageToChannels()

def image_to_channels(multi_channel_image: HObject) -> HObject

Description

The operator image_to_channelsimage_to_channelsImageToChannelsImageToChannelsimage_to_channels generates a one-channel image for each channel of the multi-channel image in MultiChannelImageMultiChannelImageMultiChannelImagemultiChannelImagemulti_channel_image. The definition domains are adopted from the input image. As many images are created as MultiChannelImageMultiChannelImageMultiChannelImagemultiChannelImagemulti_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

  • 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

MultiChannelImageMultiChannelImageMultiChannelImagemultiChannelImagemulti_channel_image (input_object)  (multichannel-)image objectHImageHObjectHObjectHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Multi-channel image to be decomposed.

ImagesImagesImagesimagesimages (output_object)  singlechannelimage-array objectHImageHObjectHObjectHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Generated one-channel images.

Possible Predecessors

count_channelscount_channelsCountChannelsCountChannelscount_channels

Possible Successors

disp_imagedisp_imageDispImageDispImagedisp_image

Alternatives

access_channelaccess_channelAccessChannelAccessChannelaccess_channel, decompose2decompose2Decompose2Decompose2decompose2, decompose3decompose3Decompose3Decompose3decompose3, decompose4decompose4Decompose4Decompose4decompose4, decompose5decompose5Decompose5Decompose5decompose5

See also

channels_to_imagechannels_to_imageChannelsToImageChannelsToImagechannels_to_image

Module

Foundation