VisionX V4VMAGVisionX V4
NAME

vmag − magnifies, changes the size of a VisionX image

SYNOPSIS

vmag [if=infile] [of=ofile] [m=x[,y]] [-i] [-v][-f]

DESCRIPTION

Vmag changes the size of a VisionX image by bilinear interpolation. The default magnification factor is 2.0 in each dimension. Reductions can be achieved by using a magnification of less than one. Closest pixel interpolation can be selected with the -i option.

CONSTRAINTS

All numeric valued image types are accepted by vmag. For color map images see the -i option below.

OPTIONS

m=x[,y]

explicitly specifies the magnification value. If only one value is specified it is used for both spatial dimensions. If two values are provided the first is for the x dimension and the second is for the y dimension.

-v

selects the verbose mode and prints some information about its action.

-i

selects the nearest integer (coordinate truncated) pixel instead of bilinear interpolation. This method has the advantage that no new pixel values are generated. This mode is automatically selected for color map (VX_PIDX) images.

-f

Forces all output images to be floating point independent of the input pixel type.

BUGS

The current implementation uses floating point operations for all data types which makes it rather slower than it should be in some cases; however, the final result is correct.

AUTHOR

A. P. Reeves