by superdisk on 1/5/25, 12:29 PM with 18 comments
by notpublic on 1/6/25, 12:10 PM
to compare two images, i1 and i2
l1 = length(gzip(i1))
l2 = length(gzip(i2))
l12 = length(gzip(concatenate(i1, i2))
ncd = (l12 - min(l1, l2))/max(l1, l2)
Here is a nice article where I found out about this long ago.https://yieldthought.com/post/95722882055/machine-learning-t...
From the article:
"Basically it states that the degree of similarity between two objects can be approximated by the degree to which you can better compress them by concatenating them into one object rather than compressing them individually."
[1] https://en.wikipedia.org/wiki/Normalized_compression_distanc...
by varjag on 1/6/25, 9:59 AM
https://web.archive.org/web/20250106075631/https://nickfa.ro...
by xenonite on 1/6/25, 12:17 PM
by rcarmo on 1/6/25, 8:58 AM
by kanwisher on 1/6/25, 8:03 AM