Skip to content

Commit

Permalink
Update PnnLABQuantizer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Apr 19, 2024
1 parent 27a9a8b commit b760507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuant.Master/PnnLABQuantizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ internal override void Pnnquan(int[] pixels, ref Color[] palettes, ref int nMaxC
quan_rt = -1;

weight = Math.Min(0.9, nMaxColors * 1.0 / maxbins);
if (weight > .0015 && weight < .002)
if (weight > .0015 && weight < .0022)
quan_rt = 2;
if (weight < .04 && PG < 1 && PG >= coeffs[0, 1]) {
var delta = Math.Exp(1.75) * weight;
Expand Down

0 comments on commit b760507

Please sign in to comment.