change_format ( Image : ImagePart : Width, Height : )

Change image size.

The operator change_format 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.


Parameters

Image (input_object)
image(-array) -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / dvf
Input image.

ImagePart (output_object)
image(-array) -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex / dvf
Image with new format.

Width (input_control)
extent.x -> integer
Width of new image.
Default value: 512
Suggested values: 32, 64, 128, 256, 512, 768, 1024

Height (input_control)
extent.y -> integer
Height of new image.
Default value: 512
Suggested values: 32, 64, 128, 256, 512, 525, 1024


Parallelization Information

change_format is reentrant and automatically parallelized (on tuple level).


Possible Successors

disp_image


Alternatives

crop_part


See also

zoom_image_size, zoom_image_factor


Module

Image / region / XLD management



Copyright © 1996-2005 MVTec Software GmbH