File: benchmark.sh

package info (click to toggle)
darktable 5.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,644 kB
  • sloc: ansic: 367,957; cpp: 102,838; xml: 20,091; lisp: 15,092; sh: 3,767; javascript: 3,264; perl: 1,925; python: 1,551; ruby: 975; makefile: 543; asm: 46; sql: 38; awk: 21
file content (23 lines) | stat: -rwxr-xr-x 495 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

REF="reference.pfm"

# benchmark the performance of denoising algorithms, in terms of PSNR.
# 
# instructions:
# shoot a static scene with all interesting iso settings.
# shoot several at lowest iso (like 3x iso 100).
# combine the iso 100 shots as a hdr in lt mode (to average out noise),
# this will be reference.pfm
# export them all as pfm.
#

for i in *.pfm
do
  if [ "$i" == "$REF" ]
  then
    continue
  fi
  echo "$i : $(compare -metric PSNR $i $REF /dev/null 2>&1)"
done