Created
March 27, 2014 21:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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