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 Oct 31, 2023
1 parent fa7b167 commit c1e46f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nQuantCpp/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.GetValue(), bidx) + 1;
m_qPixels[bidx] = m_lookup[offset] - 1;

if (m_saliencies != nullptr && CIELABConvertor::Y_Diff(pixel, c2) > m_pPalette->Count - 10) {
if (m_saliencies != nullptr && CIELABConvertor::Y_Diff(pixel, c2) > m_pPalette->Count - 7) {
auto strength = 1 / 3.0f;
c2 = BlueNoise::diffuse(pixel, m_pPalette->Entries[m_qPixels[bidx]], 1.0f / m_saliencies[bidx], strength, x, y);
m_qPixels[bidx] = m_ditherFn(m_pPalette, c2.GetValue(), bidx);
Expand Down

0 comments on commit c1e46f8

Please sign in to comment.