Browse Source

Workaround for dcraw missing denoise options

Martijn Braam 4 years ago
parent
commit
d55dc1f71c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      postprocess.sh

+ 4 - 2
postprocess.sh

@@ -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