]> git.plutz.net Git - stereofy/blobdiff - stereofy.sh
empirical tweaks to emc algorithm
[stereofy] / stereofy.sh
index 919c2a8ae183353037ab4e7d4453c50d5cc4b503..d3f4763ec058df59fa2f075dd5b56b728c890fda 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 algo="d"   #algorythm, Dubois by default
-model="gm" #color model, green-magenta by default
+model="rc" #color model, green-magenta by default
 param=""   #leave blank, will be -$algo$model
 left=''
 right=''
@@ -9,22 +9,15 @@ stereo=''
 
 while [ -n "$1" ]; do
   case "$1" in
-    -d|--dubois]) algo="d"
-       ;;
-    -f|--full|--full-color]) algo="f"
-       ;;
-    -h|--half|--half-color]) algo="d"
-       ;;
-    -rc|--rc|--red-cyan) model="rc"
-       ;;
-    -mc|--mc|--magenta-cyan) model="mc"
-       ;;
-    -gm|--gm|--green-magenta) model="gm"
-       ;;
-    -ab|--ab|--amber-blue|yellow-blue) model="ab"
-       ;;
-    -[dfh]rc|-[dfh]gm|-[fd]mc|-dab) param="$1"
-       ;;
+    -d|--dubois) algo="d";;
+    -f|--full|--full-color) algo="f";;
+    -h|--half|--half-color) algo="d";;
+    -rc|--rc|--red-cyan) model="rc";;
+    -mc|--mc|--magenta-cyan) model="mc";;
+    -gm|--gm|--green-magenta) model="gm";;
+    -ab|--ab|--amber-blue|yellow-blue) model="ab";;
+    -[dfh]rc|-[dfh]gm|-[fe]mc|-dab) param="$1";;
+    -*) echo "no such color model" >/dev/stderr; exit 1;;
     *)  if [ -z "$left" ]; then
          left="$1"
        elif [ -z "$right" ]; then