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 Sep 30, 2024
1 parent 40c2f93 commit b4ecd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuant.Master/GilbertCurve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void DitherPixel(int x, int y)
lookup[offset] = ditherable.DitherColorIndex(palette, c2.ToArgb(), bidx) + 1;
qPixels[bidx] = lookup[offset] - 1;

int acceptedDiff = Math.Max(1, palette.Length - margin);
int acceptedDiff = Math.Max(2, palette.Length - margin);
if (saliencies != null && (CIELABConvertor.Y_Diff(pixel, c2) > acceptedDiff || CIELABConvertor.U_Diff(pixel, c2) > (2 * acceptedDiff)))
{
var strength = 1 / 3f;
Expand Down

0 comments on commit b4ecd83

Please sign in to comment.