PRTools contents

PRTools manual

im_resize

IM_RESIZE

Mapping for resizing object images in datasets and datafiles

   B = IM_RESIZE(A,SIZE,METHOD)
   B = A*IM_RESIZE([],SIZE,METHOD)

Input
 A Dataset or datafile
 SIZE Desired size
 METHOD Method, see IMRESIZE

Output
 B Dataset or datafile

Description

The objects stored as images in the dataset or datafile A are resized  using the IMRESIZE command. Default METHOD is 'nearest' (nearest  neighbor interpolation).

A special method is 'preserve', which exactly copies the existing data,  cuts it, or extends it with zeros as far as appropriate. In SIZE the  desired output size has to be stored. Note that for proper use in  PRTools third size parameter of multi-band images, e.g. 3 for RGB images, has to be supplied.

In case SIZE is a scalar the default METHOD is 'preserve', which  implies that the first SIZE samples are taken, which is useful if  A is a 1-D signal. Otherwise the deafult METHOD is 'nearest'.

See also

mappings, datasets, datafiles, im2obj, data2im,

PRTools contents

PRTools manual