Skip to content

Commit 796afcd

Browse files
authored
Add files via upload
1 parent fe45b56 commit 796afcd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nQuantCpp/GilbertCurve.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ namespace Peano
125125
Color c1 = Color::MakeARGB(a_pix, r_pix, g_pix, b_pix);
126126
if (m_weight >= .0015 && m_saliencies[bidx] < .6)
127127
c1 = pixel;
128+
if (CIELABConvertor::Y_Diff(c1, c2) > (beta * M_PI * acceptedDiff))
129+
kappa = beta * .55f / m_saliencies[bidx];
128130
c2 = BlueNoise::diffuse(c1, m_pPalette[qPixelIndex], kappa, strength, x, y);
129131
}
130132
}

0 commit comments

Comments
 (0)