zoom_image_size ( Image : ImageZoom : Width, Height, Interpolation : )

Zoom an image to a given size.

zoom_image_size scales the image Image to the size given by Width and Height. The parameter Interpolation determines the type of interpolation used (see affine_trans_image).


Parameters

Image (input_object)
(multichannel-)image(-array) -> object : byte / int2 / uint2 / real
Input image.

ImageZoom (output_object)
(multichannel-)image(-array) -> object : byte / int2 / uint2 / real
Scaled image.

Width (input_control)
extent.x -> integer
Width of the resulting image.
Default value: 512
Suggested values: 128, 256, 512
Typical range of values: 2 <= Width <= 512
Minimum increment: 1
Recommended increment: 10

Height (input_control)
extent.y -> integer
Height of the resulting image.
Default value: 512
Suggested values: 128, 256, 512
Typical range of values: 2 <= Height <= 512
Minimum increment: 1
Recommended increment: 10

Interpolation (input_control)
string -> string
Type of interpolation.
Default value: 'constant'
List of values: 'none', 'constant', 'weighted'


Example
read_image(Image,'affe') 
disp_image(Image,WindowHandle) 
zoom_image_size(Image,ZooImage,0,200,200).
disp_image(ZooImage,WindowHandle) 

Parallelization Information

zoom_image_size is reentrant and automatically parallelized (on tuple level, channel level).


Alternatives

zoom_image_factor, affine_trans_image, hom_mat2d_scale


See also

hom_mat2d_scale, affine_trans_image


Module

Image filters



Copyright © 1996-2005 MVTec Software GmbH