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