PANDORE Version 6 GREYC-IMAGE

pbicubicrescale



Performs an affine rescaling of 2D image using the bicubic interpolation.



Synopsis

pbicubicrescale zoomx zoomy zoomyz [im_in|-] [im_out|-]

Description

pbicubicrescale changes magnification of the input image by a factor zoomx along the x axis, zoomy along the y axis and zoomz along the z axis (for 3D images). The image is enlarged along an axis if the zoom factor is > 1 and is shrunk if the zoom factor is >0 and <1.

This version uses the bicubic interpolation. For bicubic interpolation, the output pixel value is a weighted average\ of pixels in the nearest 4-by-4 neighborhood.

This operator needs a long execution time. Thus it can only be used for 2D images. To rescale region map or graph or 3D image, use the operator prescale.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

See also

Transformation, plinearrescale, prescale

C++ prototype

Errc PBicubicRescale( const Img2duc &im_in, Img2duc &im_out, float zoomy, float zoomx );

Version française

Augmentation ou réduction de la taille d'une image par interpolation bicubique.


Author: Régis Clouard