Skip to content

compose2Compose2Compose2compose2compose2🔗

Short description🔗

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

Signature🔗

compose2( image Image1, image Image2, out image MultiChannelImage )void Compose2( const HObject& Image1, const HObject& Image2, HObject* MultiChannelImage )static void HOperatorSet.Compose2( HObject image1, HObject image2, out HObject multiChannelImage )def compose2( image_1: HObject, image_2: HObject ) -> HObject

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

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

HImage HImage::Compose2( const HImage& Image2 ) const

HImage HImage.Compose2( HImage image2 )

Description🔗

The operator compose2Compose2 converts 2 one-channel images into a 2-channel image. The definition domain is calculated as the intersection of the definition domains of the input images. No new storage is allocated for the multi-channel image. Instead, the created multi-channel image contains references to the existing input images.

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).

Parameters🔗

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

Input image 1.

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

Input image 2.

MultiChannelImagemultiChannelImagemulti_channel_image (output_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.

Combinations with other operators🔗

Combinations

Possible successors

disp_imageDispImage

Alternatives

append_channelAppendChannel

See also

decompose2Decompose2

Module🔗

Foundation