zoom_image2 ( Image : ImageZoomed : Interpolation, ScaleWidth, ScaleHeight : )

Zoom an image by a given factor.

zoom_image2 scales the image Image by a factor of ScaleWidth in width and a factor ScaleHeight in height. The parameter Interpolation determines the type of interpolation used (see image_transform__).


Parameters

Image (input_object)
(multichannel-)image(-array) -> object : byte
Input image.

ImageZoomed (output_object)
(multichannel-)image(-array) -> object : byte
Scaled image.

Interpolation (input_control)
integer -> integer
Type of interpolation.
Default value: 1
List of values: 0, 1, 2

ScaleWidth (input_control)
extent.x -> real
Scale factor for the width of the image.
Default value: 0.5
Suggested values: 0.25, 0.5, 1.5, 2.0
Range of values: 0.001 <= ScaleWidth <= 10.0
Minimum increment: 0.001
Recommended increment: 0.1

ScaleHeight (input_control)
extent.y -> real
Scale factor for the height of the image.
Default value: 0.5
Suggested values: 0.25, 0.5, 1.5, 2.0
Range of values: 0.001 <= ScaleHeight <= 10.0
Minimum increment: 0.001
Recommended increment: 0.1


Example
read_image(:Image:'affe':) >
disp_image(Image:::) >
zoom_image2(Image:ZooImage:0,0.5,0.5:).
disp_image(ZooImage:::) >

Alternatives

zoom_image2, image_transform__, image_scale


See also

image_scale, image_transform__



Copyright © 1996-1997 MVTec Software GmbH