Pink 0.9

zoom.c File Reference

zoom (shrink or expand) an image More...


Detailed Description

zoom (shrink or expand) an image

Usage: zoom in.pgm {f | x rs | y cs | z ds | fx fy fz} out.pgm

Description: There are 3 modes, depending on the number of arguments.

1 argument: the same scale factor f is applied to both dimensions x and y (and z in 3D)

2 arguments: if the parameter x is used, followed by an integer number rs, the zoom factor f is computed by dividing rs by the rowsize of in.pgm. If the parameter y is used, followed by an integer number cs, f is computed by dividing cs by the colsize of in.pgm. If the parameter z is used, followed by an integer number ds, f is computed by dividing ds by the depth of in.pgm.

3 arguments: different zoom factors fx, fy, fz are given for directions x, y, z.

Types supported: byte 1d, byte 2d, byte 3d, int32_t 2d, int32_t 3d, float 2d, float 3d

Category: geo

Author:
Michel Couprie