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. Shifts every row of image data to
17 the left or right by a certain amount. The shift parameter determines
18 by how many pixels a row is to be shifted at most.
19
20 This is another one of those effects I intended to use for MPEG tests.
21 Unfortunately, this program will not help me here - it creates too ran‐
22 dom patterns to be used for animations. Still, it might give interest‐
23 ing results on still images.
24
25
27 Check this out: Save your favourite model's picture from something like
28 alt.binaries.pictures.supermodels (ok, or from any other picture
29 source), convert it to ppm, and process it e.g. like this, assuming the
30 picture is 800x600 pixels:
31
32 #take the upper half, and leave it like it is
33 pamcut -top=0 -width=800 -height=300 cs.ppm >upper.ppm
34
35 #take the lower half, flip it upside down, dim it and distort it a little
36 pamcut -top=300 -width=800 -height=300 cs.ppm | pamflip -topbottom | ppmdim 0.7 | ppmshift 10 >lower.ppm
37
38 #and concatenate the two pieces
39 pnmcat -topbottom upper.ppm lower.ppm >newpic.ppm
40
41
42 The resulting picture looks like the image being reflected on a water
43 surface with slight ripples.
44
45
47 ppm(1), pamcut(1), pamflip(1), ppmdim(1), pnmcat(1)
48
49
50
52 Copyright (C) 1993 by Frank Neumann
53
54
55
56netpbm documentation 16 November 1993 Ppmshift User Manual(0)