1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pamenlarge User Manual</TITLE></HEAD>
<BODY>
<H1>pamenlarge</H1>
Updated: 17 March 2010
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
pamenlarge - Enlarge a Netpbm image N times
<H2 id="synopsis">SYNOPSIS</H2>
<B>pamenlarge</B> <I>N</I> [<I>pnmfile</I>]
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<p><b>pamenlarge</b> reads a Netpbm image as input, replicates its pixels
<I>N</I> times, and produces a Netpbm image as output. The output is
the same type of image as the input.
<P>If you enlarge by a factor of 3 or more, you should probably add a
<b>pnmsmooth</b> step; otherwise, you can see the original pixels in
the resulting image.
<p>For PBM images, <b>pamenlarge</b> uses special fast algorithms for scale
factors up to 10. For larger factors, it uses a simple but slow algorithm.
As a result, you can often get a significantly faster scale by running
<b>pamenlarge</b> multiple times. For example, enlarging by 3 and
then by 5 is faster than enlarging once by 15. And because the algorithms
are different for the different scale factors, some faster than others,
the order matters too. For example, the following examples all produce
the same output -- an image 15 times bigger on edge than the input --
but with at different spees, each being faster than the one before.
<pre>
<kbd>
$ pamenlarge 15 test.pbm
$ pamenlarge 5 test.pbm | pamenlarge 3
$ pamenlarge 3 test.pbm | pamenlarge 5
</kbd>
</pre>
<p>The special fast cases for factors up to 10 have existed since Release
10.50 (March 2010). The special cases for 1, 2, 3, and 5 go back to Release
10.41 (December 2007). Before 10.41, there are no special scale factors and
PBM enlargement is significantly slower than today for all scale factors.
<P><b>pamenlarge</b> can enlarge only by integer factors. The slower
but more general <b>pamscale</B> can enlarge or reduce by arbitrary
factors. <b>pamscale</b> allows you to enlarge by resampling, which
gives you smoother enlargements. But it is much slower.
<p><b>pamstretch</b> is another enlarging program that enlarges by
integer factors. It does a simple kind of resampling that gives you a
smoothed enlargement with less computational cost.
<p><b>pbmreduce</b> can reduce by integer factors, but only for PBM
images.
<h2 id="history">HISTORY</h2>
<p><b>pamenlarge</b> was new in Netpbm 10.25 (October 2004). It is
designed as a replacement for <b>pnmenlarge</b> by Jef Poskanzer,
which was in Pbmplus as far back as 1989. The major difference is that
<b>pamenlarge</b> can enlarge PAM format images in addition to PNM.
<H2 id="seealso">SEE ALSO</H2>
<A HREF="pbmreduce.html">pbmreduce</A>,
<A HREF="pamscale.html">pamscale</A>,
<A HREF="pamstretch.html">pamstretch</A>,
<A HREF="pbmpscale.html">pbmpscale</A>,
<A HREF="pnmsmooth.html">pnmsmooth</A>,
<A HREF="pnm.html">pnm</A>
<H2 id="author">AUTHOR</H2>
Copyright (C) 1989 by Jef Poskanzer.
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#history">HISTORY</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>
|