Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Feb 9, 2025
1 parent ba49b39 commit 3870244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuantGpp/GilbertCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ namespace Peano
margin = weight < .0025 ? 12 : weight < .004 ? 8 : 6;
sortedByYDiff = !hasAlpha && m_saliencies && nMaxColors >= 128 && weight >= .052;
nMaxColors = palette.cols * palette.rows;
beta = nMaxColors > 8 ? max(.25f, 1 - .021875f * nMaxColors) : 1;
beta = nMaxColors > 8 ? (float) max(.25, 1 - (.022f + weight) * nMaxColors) : 1;
if (nMaxColors > 64 || weight > .02)
beta *= .4f;
DITHER_MAX = weight < .01 ? (weight > .0025) ? (uchar)25 : 16 : 9;
Expand Down

0 comments on commit 3870244

Please sign in to comment.