Skip to content

decompose2Decompose2Decompose2decompose2decompose2🔗

Short description🔗

decompose2Decompose2Decompose2decompose2decompose2 — Convert a two-channel image into two images.

Signature🔗

decompose2( image MultiChannelImage, out image Image1, out image Image2 )void Decompose2( const HObject& MultiChannelImage, HObject* Image1, HObject* Image2 )static void HOperatorSet.Decompose2( HObject multiChannelImage, out HObject image1, out HObject image2 )def decompose2( multi_channel_image: HObject ) -> Tuple[HObject, HObject]

Herror decompose2( const Hobject MultiChannelImage, Hobject* Image1, Hobject* Image2 )

Herror T_decompose2( const Hobject MultiChannelImage, Hobject* Image1, Hobject* Image2 )

HImage HImage::Decompose2( HImage* Image2 ) const

HImage HImage.Decompose2( out HImage image2 )

Description🔗

The operator decompose2Decompose2 converts a 2-channel image into two one-channel images with the same definition domain. 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).

  • Automatically parallelized on tuple level.

Parameters🔗

MultiChannelImagemultiChannelImagemulti_channel_image (input_object) multichannel-image(-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)

Multi-channel image.

Image1image1image_1 (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)

Output image 1.

Image2image2image_2 (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)

Output image 2.

Combinations with other operators🔗

Combinations

Possible predecessors

count_channelsCountChannels

Possible successors

disp_imageDispImage

Alternatives

access_channelAccessChannel, image_to_channelsImageToChannels

See also

compose2Compose2

Module🔗

Foundation