VisionX V4 | VIMAG | VisionX V4 |
vimag − rescales an image using filtering and interpolation |
vimag if=i<ifile> of=<ofile> [m=x[,y[,z]]] [s=x[,y[,z]]] [-i] [-c] [-f] [-v] [-d] |
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. |
Only single channel images. Pipe input is allowed for m= but not for s= |
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 |
vmag(1), vzmag(1) |
K. Cronk |