mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Drop hackneyed attempt at log scaling from previous generation
This commit is contained in:
parent
cd803cb3af
commit
e68d6fca84
11
main.py
11
main.py
@ -34,17 +34,6 @@ def main(args):
|
|||||||
anim = Animation(genomes)
|
anim = Animation(genomes)
|
||||||
accum, den = silly(anim.features, genomes)
|
accum, den = silly(anim.features, genomes)
|
||||||
|
|
||||||
if False:
|
|
||||||
bins = anim.render_frame()
|
|
||||||
w, h = anim.features.hist_width, anim.features.hist_height
|
|
||||||
bins = bins[:,:w]
|
|
||||||
alpha = bins[...,3]
|
|
||||||
k2ish = (256./(np.mean(alpha)+1e-9))
|
|
||||||
lses = 20 * np.log2(1.0 + alpha * k2ish) / (alpha+1e-6)
|
|
||||||
bins *= lses.reshape(h,w,1).repeat(4,2)
|
|
||||||
bins = np.minimum(bins, 255)
|
|
||||||
bins = bins.astype(np.uint8)
|
|
||||||
|
|
||||||
if '-g' not in args:
|
if '-g' not in args:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user