1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

add threshold comment

This commit is contained in:
Alex Xu
2025-10-25 23:16:52 -07:00
parent 9561b04bec
commit ba7f4336a5

View File

@@ -366,6 +366,7 @@ class ComicPage:
cb_hist_original = cb.histogram()
cr_hist_original = cr.histogram()
# you can increase 22 but don't touch 10 and 3 thresholds
for cutoff, diff_threshold in [((0, 0), 22), ((.2, .2), 10), ((3, 3), 3)]:
done, decision = self.color_precision(cb_hist_original, cr_hist_original, cutoff, diff_threshold)
if done: