Skip to content

Commit

Permalink
Update GilbertCurve.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Aug 28, 2024
1 parent c7a634c commit 3884094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuantCpp/GilbertCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3884094

Please sign in to comment.