From 54be5b8cb0f494e28dbed06bc3a93aefd2a9caf1 Mon Sep 17 00:00:00 2001 From: gennyble Date: Mon, 9 Oct 2023 03:40:01 -0500 Subject: real, actual difference algorithms --- squash/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'squash') 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); -- cgit 1.4.1-3-g733a5