src/PredictPDPS.jl

changeset 2
be7cab83b14a
parent 0
a55e35d20336
child 4
a64766c44642
equal deleted inserted replaced
1:dc846d506f2b 2:be7cab83b14a
12 12
13 using Printf 13 using Printf
14 using FileIO 14 using FileIO
15 #using JLD2 15 #using JLD2
16 using Setfield 16 using Setfield
17 using ImageQualityIndexes: psnr, ssim 17 using ImageQualityIndexes: assess_psnr, assess_ssim
18 using DelimitedFiles 18 using DelimitedFiles
19 import GR 19 import GR
20 20
21 using AlgTools.Util 21 using AlgTools.Util
22 using AlgTools.StructTools 22 using AlgTools.StructTools
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

mercurial