diff options
author | gennyble <gen@nyble.dev> | 2023-10-09 03:40:01 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2023-10-09 03:40:01 -0500 |
commit | 54be5b8cb0f494e28dbed06bc3a93aefd2a9caf1 (patch) | |
tree | 5bbc11b4a08bbae6884466cfcca0f97e5967a9f7 /squash | |
parent | 8bda303bd7ce4f63c2430e9de92adfc07fec63f2 (diff) | |
download | colorsquash-54be5b8cb0f494e28dbed06bc3a93aefd2a9caf1.tar.gz colorsquash-54be5b8cb0f494e28dbed06bc3a93aefd2a9caf1.zip |
real, actual difference algorithms
Diffstat (limited to 'squash')
-rw-r--r-- | squash/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/squash/src/main.rs b/squash/src/main.rs index fe7f310..f7964f4 100644 --- a/squash/src/main.rs +++ b/squash/src/main.rs @@ -51,7 +51,8 @@ fn main() -> Result<(), anyhow::Error> { } }; - let squasher = Squasher::new(color_count, &image.data); + let squasher = + Squasher::new_with_difference(color_count, &image.data, &colorsquash::redmean_difference); let size = squasher.map_over(&mut image.data); image.data.resize(size, 0); |