changeset 442:eaf8c591372b

get perl scripts for compositing images.
author Robert McIntyre <rlm@mit.edu>
date Mon, 24 Mar 2014 22:43:06 -0400
parents c20de2267d39
children d3c5f9b70574
files thesis/comp.pl thesis/cortex.org
diffstat 2 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/thesis/comp.pl	Mon Mar 24 22:43:06 2014 -0400
     1.3 @@ -0,0 +1,17 @@
     1.4 +#!/bin/perl
     1.5 +
     1.6 +use List::Flatten;
     1.7 +
     1.8 +$target = shift(@ARGV);
     1.9 +
    1.10 +$frames = shift(@ARGV);
    1.11 +
    1.12 +@numbers = split(/,/, $frames);
    1.13 +@images = map {sprintf("$target/%07d.png", $_)} @numbers;
    1.14 +
    1.15 +
    1.16 +$output = $target.".png";
    1.17 +
    1.18 +@imagemagick_command = flat("montage", @images, "-geometry", "+2+2", $output);
    1.19 +
    1.20 +print "@imagemagick_command\n";
     2.1 --- a/thesis/cortex.org	Mon Mar 24 20:59:35 2014 -0400
     2.2 +++ b/thesis/cortex.org	Mon Mar 24 22:43:06 2014 -0400
     2.3 @@ -35,7 +35,7 @@
     2.4     [[./images/cat-drinking.jpg]]
     2.5     
     2.6     It is currently impossible for any computer program to reliably
     2.7 -   label such an video as "drinking".  And rightly so -- it is a very
     2.8 +   label such a video as "drinking".  And rightly so -- it is a very
     2.9     hard problem! What features can you describe in terms of low level
    2.10     functions of pixels that can even begin to describe at a high level
    2.11     what is happening here?