Skip to content

Instantly share code, notes, and snippets.

@stefan2904
Created March 27, 2014 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefan2904/9819758 to your computer and use it in GitHub Desktop.
Save stefan2904/9819758 to your computer and use it in GitHub Desktop.
Short diff-script for tugraz' computer vision. Install ImageMagick, cd to your cv1x folder, put references in "ref" directory and create empty "diff" directory. run with: sh diff.sh
#!/bin/bash
for FILE in `ls ref`; do
[ -f output/$FILE ] && echo "checking $FILE ..." && convert ref/$FILE output/$FILE -compose difference -composite -negate -contrast-stretch 0 diff/$FILE && convert diff/$FILE -format %c histogram:info:- > diff/$FILE.txt || echo "$FILE does not exist ..."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment