RESAMPLE(9.1) RESAMPLE(9.1)
NAME
resample, pdup - resample a picture
SYNOPSIS
fb/resample width [ input ] [ B C ]
fb/pdup sx sy [ input ]
DESCRIPTION
Resample resamples the scan lines of its input image (default standard input) to the given new width. The image is decimated or interpo-
lated using a well-designed cubic filter. See transpose(9.1) for assistance with vertical resampling.
The reference explains the optional filter parameters B and C. The default values give optimal alias rejection, and should not normally be
tampered with.
Pdup scales an image by pixel duplication. Sx and sy are the horizontal and vertical scale factors. They must be positive integers. In
the output image (written on standard output), each pixel of the input image (default standard input) generates an sxxsy block of identical
pixels.
SOURCE
/sys/src/fb/resample.c
/sys/src/fb/pdup.c
SEE ALSO
picfile(9.6), Don P. Mitchell and Arun Netravali, ``Reconstruction in Computer Graphics'', SIGGRAPH '88 Conference Proceedings.
RESAMPLE(9.1)