1Pamdeinterlace User Manual(0) Pamdeinterlace User Manual(0)
2
3
4
6 pamdeinterlace - remove every other row from a PAM/PNM image
7
8
10 pamdeinterlace
11
12 [-takeodd]
13
14 [-takeeven]
15
16 [infile]
17
18 You can use the minimum unique abbreviation of the options. You can
19 use two hyphens instead of one. You can separate an option name from
20 its value with white space instead of an equals sign.
21
22
24 This program is part of Netpbm(1).
25
26 pamdeinterlace removes all the even-numbered or odd-numbered rows from
27 the input PNM or PAM image. Specify which with the -takeeven and
28 -takeodd options.
29
30 This can be useful if the image is a video capture from an interlaced
31 video source. In that case, each row shows the subject 1/60 second
32 before or after the two rows that surround it. If the subject is mov‐
33 ing, this can detract from the quality of the image.
34
35 Because the resulting image is half the height of the input image, you
36 will then want to use pamstretch or pamscale to restore it to its nor‐
37 mal height:
38
39 pamdeinterlace myimage.ppm | pamstretch -yscale=2 >newimage.ppm
40
41 Another, usually better, way to deinterlace an image is with pammixin‐
42 terlace.
43
44
45
47 -takeodd
48 Take the odd-numbered rows from the input and put them in the
49 output. The rows are numbered starting at zero, so the first
50 row in the output is the second row from the input. You cannot
51 specify both -takeeven and -takeodd.
52
53
54 -takeeven
55 Take the even-numbered rows from the input and put them in the
56 output. The rows are numbered starting at zero, so the first
57 row in the output is the first row from the input. This is the
58 default. You cannot specify both -takeeven and -takeodd.
59
60
61
62
64 pammixinterlace(1), pam(1) pnm(1)
65
66
67
68netpbm documentation 11 November 2001 Pamdeinterlace User Manual(0)