Workaround for dcraw missing denoise options

This commit is contained in:
Martijn Braam 2020-10-03 23:06:19 +02:00
parent 3a12e81688
commit d55dc1f71c
1 changed files with 4 additions and 2 deletions

View File

@ -27,10 +27,13 @@ DCRAW=""
if command -v "dcraw_emu" &> /dev/null
then
DCRAW=dcraw_emu
# -fbdd 1 Raw denoising with FBDD
set -- -fbdd 1
fi
if command -v "dcraw" &> /dev/null
then
DCRAW=dcraw
set --
fi
if [ -n "$DCRAW" ]; then
@ -39,8 +42,7 @@ if [ -n "$DCRAW" ]; then
# -o 1 Output in sRGB colorspace
# -q 3 Debayer with AHD algorithm
# -T Output TIFF
# -fbdd 1 Raw denoising with FBDD
$DCRAW +M -H 4 -o 1 -q 3 -T -fbdd 1 $BURST_DIR/1.dng
$DCRAW +M -H 4 -o 1 -q 3 -T "$@" $BURST_DIR/1.dng
# If imagemagick is available, convert the tiff to jpeg and apply slight sharpening
if command -v convert &> /dev/null