Herror ::zoom_image_size (
    Hobject Image,
    Hobject *ImageZoom,
    const HTuple &Width,
    const HTuple &Height,
    const HTuple &Interpolation
)
HImage HImage::ZoomImageSize (
    const HTuple &Width,
    const HTuple &Height,
    const HTuple &Interpolation
) const
HImageArray HImageArray::ZoomImageSize (
    const HTuple &Width,
    const HTuple &Height,
    const HTuple &Interpolation
) const

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) -> Hobject: HImage(Array) ( byte / int2 )
Input image.

ImageZoom (output_object)
(multichannel-)image(-array) -> Hobject * : HImage(Array) ( byte / int2 )
Scaled image.

Width (input_control)
extent.x -> HTuple.long
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 -> HTuple.long
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 -> HTuple.char *
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);

Alternatives

::zoom_image_factor, ::affine_trans_image, ::hom_mat2d_scale


See also

::hom_mat2d_scale, ::affine_trans_image


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH