Skip to content

Commit

Permalink
Update PnnLABQuantizer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Jan 28, 2025
1 parent 98940a9 commit 1ecb8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nQuant/j2se/PnnLABQuantizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected Color[] pnnquan(final Color[] pixels, int nMaxColors)
tb.Ac += lab1.A;
tb.Bc += lab1.B;
tb.cnt += 1.0f;
if(lab1.alpha > alphaThreshold && nMaxColors < 32)
if(lab1.alpha > alphaThreshold && nMaxColors < 128)
saliencies[i] = saliencyBase + (1 - saliencyBase) * lab1.L / 100f;
}

Expand Down

0 comments on commit 1ecb8fe

Please sign in to comment.