VisionX V4VISCALEVisionX V4
NAME

viscale − Rescales an image (larger) using interpolation

SYNOPSIS

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

DESCRIPTION

viscale scales an image to a different size using image interpolation. Zero, first, and third-order interpolation. The size of the output image is specified either by the magnification (m=) parameter or by the size (s=) parameter. If both are specified s= takes precedence. The default, if neither is specified, is linear and m=2. In this reference implementation the input image is first converted to floating point format.

CONSTRAINTS

Only single channel images.

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