aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 58b0ab2c6c458cf99b0b3f3e4e6234b7b8c6329b (plain)
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
# pgm-interlace
Vertically interlace *n* PGM frames, each one *height/n* pixels in width into
one square image with a width the same as the height.

By example, it would take two 2x4 images:

	Image A:
	  0 1
	1 A B
	2 C D
	3 E F
	4 G H

	Image B:
	  0 1
	1 I J
	2 K L
	3 M N
	4 O P

combining them into one single 4x4 image from the command `pgm-interlace imageA imageB`

	  0 1 2 3
	0 A I B J
	1 C K D L
	2 E M F N
	3 G O H P

The order in which the frames are specified on the command line is critical for
the reconstruction of the image. pgm-interlace has no way of telling in which
order a handful of pgm frames should be interlaced unless you tell it how to
stitch them together.