#! /bin/tcsh -f # Last edited on 2002-08-23 17:43:46 by hcgl set cmd = "$0"; set cmd = "${cmd:t}" set usage = "${cmd} IMG" # Blurs each image so that we can pick the background field # more reliably. if ( $#argv != 1 ) then echo "usage: ${usage}"; exit 1 endif set img = "$1"; shift; set tmp = /tmp/$$ echo "averaging ${img}{a,b,c}-L.png -> ${img}{a,b,c}-LS.png" foreach light ( a b c ) convert ${img}${light}-L.png ppm:- \ | pnmsmooth -size 7 7 \ | convert ppm:- ${img}${light}-LS.png end