PANDORE Version 6 GREYC-IMAGE

presizing



Performs an affine resizing of image or region map.



Synopsis

presize width height depth [-m mask] [im_in|-] [im_out|-]

Description

presize resizes the input image im_in so has to have the new specified size depth x height x width. The resizing uses an affine transformation. Thus, it might be necessary to use a smoothing operator either before resizing in case of image shrinking or after resizing in case of image magnifying.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Resizes tangram.pan so has to be a 512x256 image:

   pmeanfiltering 1 tangram.pan a.pan
   presize 512 256 0 a.pan b.pan

See also

Transformation

C++ prototype

Errc PResize( const Img2duc &im_in, Img2duc &im_out, int width, int height );

Version française

Ajustement de la taille d'une image en fonction d'une taille souhaitée.


Author: Régis Clouard