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

tile_imagestile_imagestile_imagesTileImagesTileImages (Operator)

Name

tile_imagestile_imagestile_imagesTileImagesTileImages — Tile multiple image objects into a large image.

Signature

tile_images(Images : TiledImage : NumColumns, TileOrder : )

Herror tile_images(const Hobject Images, Hobject* TiledImage, const Hlong NumColumns, const char* TileOrder)

Herror T_tile_images(const Hobject Images, Hobject* TiledImage, const Htuple NumColumns, const Htuple TileOrder)

Herror tile_images(Hobject Images, Hobject* TiledImage, const HTuple& NumColumns, const HTuple& TileOrder)

HImage HImageArray::TileImages(const HTuple& NumColumns, const HTuple& TileOrder) const

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

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

static void HOperatorSet.TileImages(HObject images, out HObject tiledImage, HTuple numColumns, HTuple tileOrder)

HImage HImage.TileImages(int numColumns, string tileOrder)

Description

tile_imagestile_imagestile_imagesTileImagesTileImages tiles multiple input image objects, which must contain the same number of channels, into a large image. The input image object ImagesImagesImagesImagesimages contains Num images, which may be of different size. The output image TiledImageTiledImageTiledImageTiledImagetiledImage contains as many channels as the input images. In the output image the Num input images have been tiled into NumColumnsNumColumnsNumColumnsNumColumnsnumColumns columns. Each tile has the same size, which is determined by the maximum width and height of all input images. If an input image is smaller than the tile size it is copied to the center of the respective tile. 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 image of ImagesImagesImagesImagesimages will be to the right of the first image. If TileOrderTileOrderTileOrderTileOrdertileOrder = 'vertical'"vertical""vertical""vertical""vertical" the images are copied in the vertical direction, i.e., the second image of ImagesImagesImagesImagesimages will be below the first image. The domain of TiledImageTiledImageTiledImageTiledImagetiledImage is obtained by copying the domains of ImagesImagesImagesImagesimages 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

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

Input images.

TiledImageTiledImageTiledImageTiledImagetiledImage (output_object)  (multichannel-)image 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 (multi-channel) images and stack them vertically.
gen_empty_obj (Images)
for I := 1 to 5 by 1
    grab_image_async (ImageGrabbed, AcqHandle, -1)
    concat_obj (Images, ImageGrabbed, Images)
endfor
tile_images (Images, TiledImage, 1, 'vertical')

Result

tile_imagestile_imagestile_imagesTileImagesTileImages 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_channelstile_channelstile_channelsTileChannelsTileChannels, 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