change_format ( Image : ImagePart : Width, Height : )

Change image size.

The operator change_domain increases or decreases the size of the input images to the indicated height or width, respectively. If the image is 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 includes all pixels of the new image. No zooming is carried out.


Parameters

Image (input_object)
image(-array) -> object
Input image.

ImagePart (output_object)
image(-array) -> object
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
Range of values: 0 <= Width <= 1024

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


Possible Successors

disp_image


Alternatives

crop_image


See also

zoom_image1, zoom_image2



Copyright © 1996-1997 MVTec Software GmbH