Fixed really serious AWB bug

modularize
Sofus Albert Høgsbro Rose 2016-03-19 14:15:31 -04:00
parent 95da1ce3b2
commit 81892fe049
1 changed files with 6 additions and 5 deletions

View File

@ -124,7 +124,7 @@ help () { #This is a little too much @ this point...
echo -e " --> 0: Auto WB (Requires Python Deps). 1: Camera WB. 2: No Change.\n" echo -e " --> 0: Auto WB (Requires Python Deps). 1: Camera WB. 2: No Change.\n"
echo -e " -A[int] WHITE_SPD - This is the amount of samples from which AWB will be calculated." echo -e " -A[int] WHITE_SPD - This is the amount of samples from which AWB will be calculated."
echo -e " -->About this many frames, averaged over the course of the sequence, will be used to do AWB." echo -e " -->About this many frames, averaged over the course of the sequence, will be used to do AWB.\n"
echo -e " -l<path> LUT - This is a path to the 3D LUT. Specify the path to the LUT to use it." echo -e " -l<path> LUT - This is a path to the 3D LUT. Specify the path to the LUT to use it."
echo -e " --> Compatibility determined by ffmpeg (.cube is supported)." echo -e " --> Compatibility determined by ffmpeg (.cube is supported)."
@ -463,7 +463,8 @@ for ARG in $*; do
for file in $TMP/*.dng; do for file in $TMP/*.dng; do
if [ `echo "(${i}+1) % ${n}" | bc` -eq 0 ]; then # || [ $i -eq 1 ]; then #Only develop every nth file - we're averaging, after all! if [ `echo "(${i}+1) % ${n}" | bc` -eq 0 ]; then # || [ $i -eq 1 ]; then #Only develop every nth file - we're averaging, after all!
dcraw -q 0 $BADPIXELS -r 1 1 1 1 -g $GAMMA -o 0 -T "${file}" dcraw -q 0 $BADPIXELS -r 1 1 1 1 -g $GAMMA -o 0 -T "${file}"
mv $file $toBal #TIFF MOVEMENT name=$(basename "$file")
mv "$TMP/${name%.*}.tiff" $toBal #TIFF MOVEMENT
let t++ let t++
fi fi
echo -e "\e[2K\rWB Development: Sample ${t}/$(echo "${FRAMES} / $n" | bc) (Frame: $(echo "${i} + 1" | bc)/${FRAMES})\c" echo -e "\e[2K\rWB Development: Sample ${t}/$(echo "${FRAMES} / $n" | bc) (Frame: $(echo "${i} + 1" | bc)/${FRAMES})\c"
@ -551,10 +552,10 @@ for ARG in $*; do
for file in $TMP/*.dng; do for file in $TMP/*.dng; do
if [ $isJPG == true ]; then if [ $isJPG == true ]; then
runSim dcrawFile img_main img_prox runSim dcrawFile img_main img_prox
echo -e "\e[2K\rDNG to TIFF/JPG (dcraw): Frame ${i}/${FRAMES}.\c" echo -e "\e[2K\rDNG to TIFF/JPG (dcraw): Frame $(echo "${i} + 1" | bc)/${FRAMES}.\c"
else else
dcrawFile $file | img_main dcrawFile $file | img_main
echo -e "\e[2K\rDNG to TIFF (dcraw): Frame ${i}/${FRAMES}.\c" echo -e "\e[2K\rDNG to TIFF (dcraw): Frame $(echo "${i} + 1" | bc)/${FRAMES}.\c"
fi fi
let i++ let i++
done done
@ -578,7 +579,7 @@ for ARG in $*; do
for file in $TMP/*.dng; do for file in $TMP/*.dng; do
if [ $isJPG == true ]; then if [ $isJPG == true ]; then
dcrawFile $file | img_prox dcrawFile $file | img_prox
echo -e "\e[2K\rDNG to JPG (dcraw): Frame ${i}/${FRAMES}.\c" echo -e "\e[2K\rDNG to JPG (dcraw): Frame $(echo "${i} + 1" | bc)/${FRAMES}.\c"
fi fi
let i++ let i++
done done