Skip to content

Commit

Permalink
Update GilbertCurve.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan committed Jul 6, 2024
1 parent 44fabd5 commit 211581b
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 @@ -258,7 +258,7 @@ namespace Peano
int density = m_nMaxColor > 16 ? 3200 : 1500;
if (m_nMaxColor / weight > 5000 && (weight > .045 || (weight > .01 && m_nMaxColor <= 64)))
ditherMax = (BYTE)sqr(5 + edge);
else if (DITHER_MAX > 9 && m_nMaxColor / weight < density && m_nMaxColor >= 16 && m_nMaxColor < 256)
else if (weight < .03 && m_nMaxColor / weight < density && m_nMaxColor >= 16 && m_nMaxColor < 256)
ditherMax = (BYTE)sqr(5 + edge);
thresold = DITHER_MAX > 9 ? -112 : -64;
auto pLookup = make_unique<short[]>(USHRT_MAX + 1);
Expand Down

0 comments on commit 211581b

Please sign in to comment.