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

change_formatchange_formatchange_formatChangeFormatChangeFormat (Operator)

Name

change_formatchange_formatchange_formatChangeFormatChangeFormat — Change image size.

Signature

change_format(Image : ImagePart : Width, Height : )

Herror change_format(const Hobject Image, Hobject* ImagePart, const Hlong Width, const Hlong Height)

Herror T_change_format(const Hobject Image, Hobject* ImagePart, const Htuple Width, const Htuple Height)

Herror change_format(Hobject Image, Hobject* ImagePart, const HTuple& Width, const HTuple& Height)

HImage HImage::ChangeFormat(const HTuple& Width, const HTuple& Height) const

HImageArray HImageArray::ChangeFormat(const HTuple& Width, const HTuple& Height) const

void HOperatorSetX.ChangeFormat(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImagePart, [in] VARIANT Width, [in] VARIANT Height)

IHImageX* HImageX.ChangeFormat(
[in] Hlong Width, [in] Hlong Height)

static void HOperatorSet.ChangeFormat(HObject image, out HObject imagePart, HTuple width, HTuple height)

HImage HImage.ChangeFormat(int width, int height)

Description

The operator change_formatchange_formatchange_formatChangeFormatChangeFormat increases or decreases the size of the input images to the indicated height or width, respectively. If the image is reduced, parts are cut off at the “right” or “lower” edge of the image, respectively. If the image is enlarged, the additional areas are set to 0. The definition domain of the new image is equal to the domain of the input image, clipped to the size of the new image. No zooming is carried out.

Parallelization

Parameters

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

Input image.

ImagePartImagePartImagePartImagePartimagePart (output_object)  image(-array) objectHImageHImageHImageXHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Image with new format.

WidthWidthWidthWidthwidth (input_control)  extent.x HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Width of new image.

Default value: 512

Suggested values: 32, 64, 128, 256, 512, 768, 1024

HeightHeightHeightHeightheight (input_control)  extent.y HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Height of new image.

Default value: 512

Suggested values: 32, 64, 128, 256, 512, 525, 1024

Possible Successors

disp_imagedisp_imagedisp_imageDispImageDispImage

Alternatives

crop_partcrop_partcrop_partCropPartCropPart

See also

zoom_image_sizezoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSize, zoom_image_factorzoom_image_factorzoom_image_factorZoomImageFactorZoomImageFactor

Module

Foundation


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