184 lines
4.2 KiB
HTML
184 lines
4.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of pamstretch</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>pamstretch</H1>
|
|
Section: User Commands (1)<BR>Updated: 11 November 2001<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pamstretch - scale up a PNM or PAM image by interpolating between pixels
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>pamstretch</B>
|
|
|
|
[<B>-xscale=</B><I>X</I>]
|
|
|
|
[<B>-yscale=</B><I>Y</I>]
|
|
|
|
<BR>
|
|
|
|
[<B>-blackedge</B>]
|
|
|
|
[<B>-dropedge</B>]
|
|
|
|
<I>N</I>
|
|
|
|
[<I>infile</I>]
|
|
|
|
<P>
|
|
You can use the minimum unique abbreviation of the options. You can use
|
|
two hyphens instead of one. You can separate an option name from its value
|
|
with white space instead of an equals sign.
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>pamstretch </B>
|
|
|
|
scales up pictures by integer values, either vertically, horizontally,
|
|
or both.
|
|
<B>pamstretch </B>
|
|
|
|
differs from
|
|
<B>pnmscale</B>
|
|
|
|
and
|
|
<B>pnmenlarge</B>
|
|
|
|
in that when it inserts the additional rows and columns, instead of
|
|
making the new row or column a copy of its neighbor,
|
|
<B>pamstretch</B>
|
|
|
|
makes the new row or column an interpolation between its neighbors. In some
|
|
images, this produces better looking output.
|
|
<P>
|
|
|
|
To scale up to non-integer pixel sizes, e.g. 2.5, try
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pamstretch-gen">pamstretch-gen</A></B>(1)
|
|
|
|
instead.
|
|
<P>
|
|
Options let you select alternative methods of dealing with the
|
|
right/bottom edges of the picture. Since the interpolation is done
|
|
between the top-left corners of the scaled-up pixels, it's not obvious
|
|
what to do with the right/bottom edges. The default behaviour is to
|
|
scale those up without interpolation (more precisely, the right edge
|
|
is only interpolated vertically, and the bottom edge is only
|
|
interpolated horizontally), but there are two other possibilities,
|
|
selected by the
|
|
<B>blackedge</B>
|
|
|
|
and
|
|
<B>dropedge</B>
|
|
|
|
options.
|
|
<P>
|
|
<P>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>PARAMETERS</H2>
|
|
|
|
<P>
|
|
The
|
|
<I>N</I>
|
|
|
|
parameter is the scale factor. It is valid only if you
|
|
<I>don't</I>
|
|
|
|
specify
|
|
<B>-xscale</B>
|
|
|
|
or
|
|
<B>-yscale</B>.
|
|
|
|
In that case,
|
|
<B>pamstretch</B>
|
|
|
|
scales in both dimensions and by the scale factor
|
|
<I>N</I>.
|
|
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-xscale=</B><I>X</I>
|
|
|
|
<DD>
|
|
This is the horizontal scale factor. If you don't specify this, but do
|
|
specify a vertical scale factor, the horizontal scale factor is 1.
|
|
<P>
|
|
<DT id="2"><B>-yscale=</B><I>Y</I>
|
|
|
|
<DD>
|
|
This is the vertical scale factor. If you don't specify this, but do
|
|
specify a horizontal scale factor, the vertical scale factor is 1.
|
|
<P>
|
|
</DL>
|
|
<P>
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="3"><B>-blackedge</B>
|
|
|
|
<DD>
|
|
interpolate to black at right/bottom edges.
|
|
<DT id="4"><B>-dropedge</B>
|
|
|
|
<DD>
|
|
drop one (source) pixel at right/bottom edges. This is arguably more
|
|
logical than the default behaviour, but it means producing output
|
|
which is a slightly odd size.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
Usually produces fairly ugly output for PBMs. For most PBM input
|
|
you'll probably want to reduce the `noise' first using something like
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmnlfilt">pnmnlfilt</A></B>(1).
|
|
|
|
<P>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pamstretch-gen">pamstretch-gen</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmenlarge">pnmenlarge</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmscale">pnmscale</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pnmnlfilt">pnmnlfilt</A></B>(1)
|
|
|
|
<P>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Russell Marks (<A HREF="mailto:russell.marks@ntlworld.com">russell.marks@ntlworld.com</A>).
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="8"><A HREF="#lbAE">PARAMETERS</A><DD>
|
|
<DT id="9"><A HREF="#lbAF">OPTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAG">BUGS</A><DD>
|
|
<DT id="11"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="12"><A HREF="#lbAI">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:21 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|