@@ -291,7 +291,7 @@ def _calc_ccm(ct, color_lookups, cc_setting, state_info):
291
291
if cc_setting in (3 , 4 , 5 ):
292
292
possible = possible_colors (ct .dark , BITS_PER_COLOR )
293
293
if len (color_lookups [0 ]) < len (possible ):
294
- raise Exception ("kabooski" )
294
+ raise Exception ("kaboomski" ) # not clear whether this should throw or not, really.
295
295
exp = [color for i ,color in enumerate (possible ) if i in color_lookups [0 ]] + [(255 ,255 ,255 )]
296
296
exp = numpy .array (exp )
297
297
white = state_info ['white' ]
@@ -344,7 +344,6 @@ def _decode_iter(ct, img, color_img, state_info={}):
344
344
numpy .array ([255 , 255 , 255 ]), 2 , 'von_kries' )
345
345
346
346
if state_info .get ('headers' ):
347
- print ('now would be a good time to use the color index' )
348
347
cc_setting = state_info ['color_correct' ]
349
348
splits = 2 if cc_setting in (6 , 7 ) else 0
350
349
@@ -353,9 +352,6 @@ def _decode_iter(ct, img, color_img, state_info={}):
353
352
print ('color lookups:' )
354
353
print (color_lookups )
355
354
356
- #matrix_colour_correction_Cheung2004
357
- #matrix_colour_correction_Finlayson2015
358
-
359
355
_calc_ccm (ct , color_lookups , cc_setting , state_info )
360
356
361
357
print ('beginning decode colors pass...' )
@@ -425,7 +421,6 @@ def decode(src_images, outfile, dark=False, ecc=conf.ECC, fountain=False, force_
425
421
second_pass = None
426
422
427
423
# this is a bit goofy, might refactor it to have less "loop through writers" weirdness
428
- # ok, gonna *have* to rewrite it to get at + pass the fountain header anyway...
429
424
iw = first_pass
430
425
state_info = {}
431
426
for i , bits in decode_iter (
0 commit comments