Created
August 5, 2020 20:27
-
-
Save GuyPaddock/9e41211c9567ce46fe857efa78229d73 to your computer and use it in GitHub Desktop.
Convert images to PNG, resize them, and then compute dissimilarity
This file contains hidden or 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
#!/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