Skip to content

Commit

Permalink
Update GilbertCurve.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Aug 28, 2024
1 parent 7609ceb commit b20caaa
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 @@ -250,7 +250,7 @@ namespace Peano
margin = weight < .0025 ? 12 : 6;

nMaxColors = palette.cols * palette.rows;
sortedByYDiff = !hasAlpha && m_saliencies && nMaxColors >= 128 && weight >= .042;
sortedByYDiff = !hasAlpha && m_saliencies && nMaxColors >= 128 && weight >= .052;
DITHER_MAX = weight < .01 ? (weight > .0025) ? (uchar)25 : 16 : 9;
auto edge = hasAlpha ? 1 : exp(weight) + .25;
auto deviation = weight > .002 ? .25 : 1;
Expand Down

0 comments on commit b20caaa

Please sign in to comment.