392 |
392 |
393 entry = LogEntry(iter, tm, value, |
393 entry = LogEntry(iter, tm, value, |
394 sc*d.v_cumul_true[1], |
394 sc*d.v_cumul_true[1], |
395 sc*d.v_cumul_true[2], |
395 sc*d.v_cumul_true[2], |
396 sc*v[1], sc*v[2], |
396 sc*v[1], sc*v[2], |
397 psnr(x, d.b_true), |
397 assess_psnr(x, d.b_true), |
398 ssim(x, d.b_true), |
398 assess_ssim(x, d.b_true), |
399 psnr(d.b_noisy, d.b_true), |
399 assess_psnr(d.b_noisy, d.b_true), |
400 ssim(d.b_noisy, d.b_true)) |
400 assess_ssim(d.b_noisy, d.b_true)) |
401 |
401 |
402 # (**) Collect a singly-linked list of log to avoid array resizing |
402 # (**) Collect a singly-linked list of log to avoid array resizing |
403 # while iterating |
403 # while iterating |
404 stn = @set stn.log=LinkedListEntry(entry, stn.log) |
404 stn = @set stn.log=LinkedListEntry(entry, stn.log) |
405 |
405 |