VisionX V4VIMAGVisionX V4
NAME

vimag − rescales an image using filtering and interpolation

SYNOPSIS

vimag if=i<ifile> of=<ofile> [m=x[,y[,z]]] [s=x[,y[,z]]] [-i] [-c] [-f] [-v] [-d]

DESCRIPTION

vimag scales an image to a different size using image interpolation. The interpolation method may be one of zero, first, or third-order interpolation. The size of the output image is specified either by the magnification (m=) parameter or by the size (s=) parameter. The default is linear and m=2. In this reference implementation the input image is first converted to floating point format. In the case that m<1 or s= specifies a size smaller than the input image size, an antialiasing Gaussian filter is applied in that dimension to the image before interpolation is performed.

CONSTRAINTS

Only single channel images. Pipe input is allowed for m= but not for s=

OPTIONS

if=

specifies the input image

of=

specifies the output image

m=<mag>

specify the magnification in three dimensions (unspecified dimensions are set equal to last specified dimension ( e.g. z=y)). m=1 indicates no magnification. m>=1 required.

s=<size>

specify the output image size (unspecified dimensions are set equal to last specified dimension ( e.g. z=y)). s=>1 required. s= must be greater than or equal to input image dimensions.

-i

select no interpolation (i.e., zero order interpolation)

-c

select cubic interpolation -f

-r

return a float image

-v

verbose mode

-d

debug mode

SEE ALSO

vmag(1), vzmag(1)

AUTHOR

K. Cronk