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 72eddec commit 7b39809
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 @@ -125,7 +125,7 @@ namespace Peano
m_lookup[offset] = m_ditherFn(*m_pPalette, c2, bidx) + 1;
qPixelIndex = m_lookup[offset] - 1;

int acceptedDiff = max(1, nMaxColors - margin);
int acceptedDiff = max(2, nMaxColors - margin);
if (m_saliencies != nullptr && (CIELABConvertor::Y_Diff(pixel, c2) > acceptedDiff || CIELABConvertor::U_Diff(pixel, c2) > (2 * acceptedDiff))) {
Vec4b qPixel;
GrabPixel(qPixel, *m_pPalette, qPixelIndex, 0);
Expand Down

0 comments on commit 7b39809

Please sign in to comment.