unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (plan9)
Page:
Section:
Apropos / Subsearch:
optional field

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  interpolated
       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  horizon-
       tal  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 sxsy 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)