From 388409487f4755bf722e62bfb83b9bfb36f32464 Mon Sep 17 00:00:00 2001 From: Miller Cy Chan Date: Wed, 28 Aug 2024 23:48:47 +0800 Subject: [PATCH] Update GilbertCurve.cpp --- nQuantCpp/GilbertCurve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nQuantCpp/GilbertCurve.cpp b/nQuantCpp/GilbertCurve.cpp index 62d6428..8114fda 100644 --- a/nQuantCpp/GilbertCurve.cpp +++ b/nQuantCpp/GilbertCurve.cpp @@ -251,7 +251,7 @@ namespace Peano errorq.clear(); weight = abs(weight); margin = weight < .0025 ? 12 : 6; - sortedByYDiff = !m_hasAlpha && m_saliencies && m_nMaxColor >= 128 && weight >= .042; + sortedByYDiff = !m_hasAlpha && m_saliencies && m_nMaxColor >= 128 && weight >= .052; DITHER_MAX = weight < .01 ? (weight > .0025) ? (BYTE)25 : 16 : 9; auto edge = m_hasAlpha ? 1 : exp(weight) + .25; auto deviation = weight > .002 ? .25 : 1;