1Ppmshift User Manual(0) Ppmshift User Manual(0)
2
3
4
6 ppmshift - shift lines of a PPM image left or right by a random amount
7
8
10 ppmshift shift [ppmfile]
11
12
14 This program is part of Netpbm(1).
15
16 ppmshift reads a PPM image as input. It shifts every row of image data
17 to the left or right by a random amount, within a range of shift pix‐
18 els. The random distribution is uniform, centered at zero movement.
19
20 The randomness in the image is limited before Netpbm 10.37 (December
21 2006) -- if you run the program twice in the same second, you may get
22 identical output.
23
24 This is an effect the author intended to use for MPEG tests. Unfortu‐
25 nately, this program is not useful for that - it creates too random
26 patterns to be used for animations. Still, it might give interesting
27 results on still images.
28
29
31 There are no command line options defined specifically for ppmshift,
32 but it recognizes the options common to all programs based on libnetpbm
33 (See
34 Common Options ⟨index.html#commonoptions⟩ .)
35
36
38 Check this out: Save your favorite model's picture from something like
39 alt.binaries.pictures.supermodels (ok, or from any other picture
40 source), convert it to ppm, and process it e.g. like this, assuming the
41 picture is 800x600 pixels:
42
43 #take the upper half, and leave it like it is
44 pamcut -top=0 -width=800 -height=300 cs.ppm >upper.ppm
45
46 #take the lower half, flip it upside down, dim it and distort it a little
47 pamcut -top=300 -width=800 -height=300 cs.ppm | \
48 pamflip -topbottom | \
49 ppmdim 0.7 | \
50 ppmshift 10 >lower.ppm
51
52 #and concatenate the two pieces
53 pnmcat -topbottom upper.ppm lower.ppm >newpic.ppm
54
55
56
57 The resulting picture looks like the image being reflected on a water
58 surface with slight ripples.
59
60
62 ppm(1), pamcut(1), pamflip(1), ppmdim(1), pnmcat(1)
63
64
65
67 Copyright (C) 1993 by Frank Neumann
68
70 This manual page was generated by the Netpbm tool 'makeman' from HTML
71 source. The master documentation is at
72
73 http://netpbm.sourceforge.net/doc/ppmshift.html
74
75netpbm documentation 20 November 2008 Ppmshift User Manual(0)