Introducing a new FOSS raw image denoiser, RawRefinery, and seeking testers.

I see there are some changes in RawHandler regarding exiv2, but apparently it does not work yet together with rawforge. Thus, I created this sketchy wrapper script to copy the exif data. I found that exiftool seems to change some things, because my Lens information would not show correctly and the focus distance was also off… exiv2 seems to be way more reliant!

#!/bin/bash
LOGFILE=/home/reox/stash/rawforge.log
echo "STARTING $(date) - $@" | tee -a "$LOGFILE"
rawforge $@ | tee -a "$LOGFILE"

args=()
while [ $# -ne 0 ]; do
    case "$1" in
        "--conditioning")
            shift 2 ;;
        "--dims")
            shift 5 ;;
        "--cfa")
            shift ;;
        "--device")
            shift 2 ;;
        "--disable_tqdm")
            shift ;;
        "--tile_size")
            shift ;;
        *)
            args+=("$1")
            shift ;;
    esac
done

if [ ${#args[@]} -ne 3 ]; then
    echo "Error! Wasn't able to determine arguments of rawforge." | tee -a "$LOGFILE"
else
    exiv2 -ee- "${args[1]}" | exiv2 -ie- "${args[2]}"
fi

echo "FINISHED $(date)" | tee -a "$LOGFILE"

It’s a bit sketchy because I need to re-parse the arguments …