VPYRAMID

VisionX V4
NAME

vpyramid − Reduce (or magnify) an image by a factor of 2^n

SYNOPSIS

vpyramid [-H] [if=<inputfile>] [of=<outputprefix>] [n=] [-m]

DESCRIPTION

vpyramid reduces the size of an image in x and y by a factor of 2^n. Pixel averaging is used to get the output values. By default, n=1, which makes the scaling factor equal 2, and the image size is quartered.The -m option allows the inverse operation: magnification by a factor of 2^n. The magnification algorithm replicates each pixel value 2^n times in the output.

OPTIONS

if=

Input File

of=

Output File

n=

Scaling factor -> 2^n

-m

Magnification (instead of reduction)

CONSTRAINTS

*

Image size must be power of 2

*

Handles short and byte images

*

n must be between 0 and 4 --> scaling factor between 1 and 16

BUGS

--

SEE ALSO

--
vmag, vzmag

AUTHOR

Benjamin Stein, Fall 2001