HALCON Reference Manual 10.0.2
Table of Contents / Image / Format ClassesClassesClasses | | | Operators

tile_channelstile_channelstile_channelsTileChannelsTileChannels (Operator)

Name

tile_channelstile_channelstile_channelsTileChannelsTileChannels — Tile multiple images into a large image.

Signature

tile_channels(Image : TiledImage : NumColumns, TileOrder : )

Herror tile_channels(const Hobject Image, Hobject* TiledImage, const Hlong NumColumns, const char* TileOrder)

Herror T_tile_channels(const Hobject Image, Hobject* TiledImage, const Htuple NumColumns, const Htuple TileOrder)

Herror tile_channels(Hobject Image, Hobject* TiledImage, const HTuple& NumColumns, const HTuple& TileOrder)

HImage HImage::TileChannels(const HTuple& NumColumns, const HTuple& TileOrder) const

HImageArray HImageArray::TileChannels(const HTuple& NumColumns, const HTuple& TileOrder) const

void HOperatorSetX.TileChannels(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*TiledImage, [in] VARIANT NumColumns, [in] VARIANT TileOrder)

IHImageX* HImageX.TileChannels(
[in] Hlong NumColumns, [in] BSTR TileOrder)

static void HOperatorSet.TileChannels(HObject image, out HObject tiledImage, HTuple numColumns, HTuple tileOrder)

HImage HImage.TileChannels(int numColumns, string tileOrder)

Description

tile_channelstile_channelstile_channelsTileChannelsTileChannels tiles an image consisting of multiple channels into a large single-channel image. The input image ImageImageImageImageimage contains Num images of the same size, which are stored in the individual channels. The output image TiledImageTiledImageTiledImageTiledImagetiledImage contains a single channel image, where the Num input channels have been tiled into NumColumnsNumColumnsNumColumnsNumColumnsnumColumns columns. In particular, this means that tile_channelstile_channelstile_channelsTileChannelsTileChannels cannot tile color images. For this purpose, tile_imagestile_imagestile_imagesTileImagesTileImages can be used. The parameter TileOrderTileOrderTileOrderTileOrdertileOrder determines the order in which the images are copied into the output in the cases in which this is not already determined by NumColumnsNumColumnsNumColumnsNumColumnsnumColumns (i.e., if NumColumnsNumColumnsNumColumnsNumColumnsnumColumns != 1 and NumColumnsNumColumnsNumColumnsNumColumnsnumColumns != Num). If TileOrderTileOrderTileOrderTileOrdertileOrder = 'horizontal'"horizontal""horizontal""horizontal""horizontal" the images are copied in the horizontal direction, i.e., the second channel of ImageImageImageImageimage will be to the right of the first channel. If TileOrderTileOrderTileOrderTileOrdertileOrder = 'vertical'"vertical""vertical""vertical""vertical" the images are copied in the vertical direction, i.e., the second channel of ImageImageImageImageimage will be below the first channel. The domain of TiledImageTiledImageTiledImageTiledImagetiledImage is obtained by copying the domain of ImageImageImageImageimage to the corresponding locations in the output image. If Num is not a multiple of NumColumnsNumColumnsNumColumnsNumColumnsnumColumns the output image will have undefined gray values in the lower right corner of the image. The output domain will reflect this.

Parallelization

Parameters

ImageImageImageImageimage (input_object)  multichannel-image(-array) objectHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)

Input image.

TiledImageTiledImageTiledImageTiledImagetiledImage (output_object)  singlechannelimage(-array) objectHImageHImageHImageXHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)

Tiled output image.

NumColumnsNumColumnsNumColumnsNumColumnsnumColumns (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Number of columns to use for the output image.

Default value: 1

Suggested values: 1, 2, 3, 4, 5, 6, 7

Restriction: NumColumns >= 1

TileOrderTileOrderTileOrderTileOrdertileOrder (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Order of the input images in the output image.

Default value: 'vertical' "vertical" "vertical" "vertical" "vertical"

List of values: 'horizontal'"horizontal""horizontal""horizontal""horizontal", 'vertical'"vertical""vertical""vertical""vertical"

Example (HDevelop)

* Grab 5 single-channel images and stack them vertically.
gen_rectangle1 (Image, 0, 0, Height-1, Width-1)
for I := 1 to 5 by 1
    grab_image_async (ImageGrabbed, AcqHandle, -1)
    append_channel (Image, ImageGrabbed, Image)
endfor
tile_channels (Image, TiledImage, 1, 'vertical')

Result

tile_channelstile_channelstile_channelsTileChannelsTileChannels returns 2 (H_MSG_TRUE) if all parameters are correct and no error occurs during execution. If the input is empty the behavior can be set via set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If necessary, an exception is raised.

Possible Predecessors

append_channelappend_channelappend_channelAppendChannelAppendChannel

Alternatives

tile_imagestile_imagestile_imagesTileImagesTileImages, tile_images_offsettile_images_offsettile_images_offsetTileImagesOffsetTileImagesOffset

See also

change_formatchange_formatchange_formatChangeFormatChangeFormat, crop_partcrop_partcrop_partCropPartCropPart, crop_rectangle1crop_rectangle1crop_rectangle1CropRectangle1CropRectangle1

Module

Foundation


Table of Contents / Image / Format ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH