From 6bcb11cdb5aeb75cd43a97a3708aa93ced1d76c2 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 3 May 2016 12:34:27 +1200 Subject: Add diagram to readme --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 815a201..58b0ab2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,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. -- cgit v1.1