Skip to content

Instantly share code, notes, and snippets.

@GuyPaddock
Created August 5, 2020 20:27
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 GuyPaddock/9e41211c9567ce46fe857efa78229d73 to your computer and use it in GitHub Desktop.
Save GuyPaddock/9e41211c9567ce46fe857efa78229d73 to your computer and use it in GitHub Desktop.
Convert images to PNG, resize them, and then compute dissimilarity
#!/usr/bin/env bash
mogrify -format png *.jpg
mogrify \
-resize 4096x4096 \
-background black \
-gravity center \
-extent 4096x4096 \
-format png \
-path resized \
*.png
# TODO: This needs to be a O(n!) loop in which, for each image, we compute for all other images we have not yet seen.
dssim *.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment