3 algo="d" #algorythm, Dubois by default
4 model="gm" #color model, green-magenta by default
5 param="" #leave blank, will be -$algo$model
12 -d|--dubois]) algo="d"
14 -f|--full|--full-color]) algo="f"
16 -h|--half|--half-color]) algo="d"
18 -rc|--rc|--red-cyan) model="rc"
20 -mc|--mc|--magenta-cyan) model="mc"
22 -gm|--gm|--green-magenta) model="gm"
24 -ab|--ab|--amber-blue|yellow-blue) model="ab"
26 -[dfh]rc|-[dfh]gm|-[fd]mc|-dab) param="$1"
28 *) if [ -z "$left" ]; then
30 elif [ -z "$right" ]; then
32 elif [ -z "$stereo" ]; then
40 [ -z "$param" ] && param="-$algo$model"
41 [ -z "$stereo" ] && stereo="${left}_stereo.jpg"
43 geom=$(identify "$left" |sed -rn 's:^.* ([0-9]+x[0-9]+) .*$:\1:gp')
46 stream "$left" "$left.bts"
47 stream "$right" "$right.bts"
49 echo -n anaglyphing...
50 anaglyph "$param" "$left.bts" "$right.bts" "$stereo.bts"
54 convert -depth 8 -size "$geom" "rgb:$stereo.bts" "$stereo"
58 rm "$left.bts" "$right.bts" "$stereo.bts" 2>/dev/null