Hi,

I did not forget about lux.
8 days ago the graphics card of my laptop gave up. Yesterday finally my new
laptop arrived after 4 days delay in the warehouse.
This morning I downloaded the latest lux from git and compiled it.
I got in general good results, but also ran it on a series of test images
and got strange effects on the edges. Note that I took a lux version of
8~10 days old which had the same issue but also "dark areas" in the images.
As that is now "solved" in this latest version, I did not include those
images.

I first run align_image_stack on the images which delivers a pto.
Then I run lux with
lux -W \
             --blending=hdr \
             --snapshot_like_source=yes \
             --snapshot_facet=1 \
             --snapshot_prefix="${PREFIX}" \
             --snapshot_extension=$SUFFIX \
             --aeb_auto_brightness=yes \
             --next_after_fusion=yes \
             --build_pyramids=no \
             --build_raw_pyramids=no \
             --quality_interpolator_degree=1 \
             --snapshot_threads=4 \
             "${PTO}"

See attached my luxfuser.sh script, but renamed as luxfuser.txt

In my Google drive you will find 2 examples which were simply taken because
of blue sky, hard lights, a glistening river and dark trees.
See 2 tars: br2.tar and br3.tar.
https://drive.google.com/drive/folders/1j-YKHd8TDP0UvPsVUZrXXJ7dHbDrXDiA?usp=sharing

You will find the source images as *.JPG
the align_image_stack/lux image as lux.jpg
the align_image_stack/enfuse image as <series>-enfuse.jpg
the hugin images (align_image_stack/nona/enfuse) image as <series>_fused.jpg

The lux.jpg has strange "cadres" around the image.

Any idea?

Harry

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CAGARPpvTLhQZo%3DajOMfbs4uYR056tCQ%3D14T2gAT30GKCTrnv5Q%40mail.gmail.com.
#!/bin/bash

#lux image fuse script

LUX="/usr/local/bin/lux"
ET="/usr/bin/exiftool"

Info () {
        printf "* First give the target file name like 
\"<path>/myluxfused.jpg\" or \"<path>/myluxfused.tif\" or 
\"<path>/myluxfused.exr\"\n"
        printf "* Then give the input files. That can be as \"*.jpg\", or as 
\"one.jpg 2.jpg 3.jpg\"\n"
        printf "* Examples:\n* /path/to/luximagefuser.sh myluxfused.jpg br1.jpg 
br2.jpg br3.jpg\n"
        printf "* Or:\n* /path/to/luximagefuser.sh myluxfused.jpg *.jpg\n\n"
        exit
}


########################################################################
## main part ##
# No output given?
if [ "$1" = "" ]
then
    Info;
fi
OUTPUT=$1
PREFIX=$(echo $OUTPUT | cut -d"(" -f2 | cut -d"." -f1)
SUFFIX=$(echo $OUTPUT | cut -d"(" -f2 | cut -d"." -f2)
PTO=$(echo $OUTPUT | cut -d"(" -f2 | cut -d"." -f1)".pto"
# Now shift our parameters to exclude our to be created fused image from the 
image processing
shift;

printf "\n\n* Running align_image_stack on our images\n\n"

align_image_stack --gpu -p "${PTO}" -v $@
printf "\n\n* Done with ais; now running lux on our aligned images\n\n"
${LUX} -W \
             --blending=hdr \
             --snapshot_like_source=yes \
             --snapshot_facet=1 \
             --snapshot_prefix="${PREFIX}" \
             --snapshot_extension=$SUFFIX \
             --aeb_auto_brightness=yes \
             --next_after_fusion=yes \
             --build_pyramids=no \
             --build_raw_pyramids=no \
             --quality_interpolator_degree=1 \
             --snapshot_threads=4 \
             "${PTO}"
# If we named our image "myluxfused.jpg", lux will create 
"myluxfused.pto.lux.1.fused.jpg"
# So we will first rename it to our desired name
mv "${PREFIX}1.fused.${SUFFIX}" "${OUTPUT}"
if [[ ! ( "$SUFFIX" == "exr" || "$SUFFIX" == "EXR" ) ]];
then  
  printf "\n\nFinally running exiftool to copy the metadata from our first 
image to our fused image \"${OUTPUT}\"\n\n"
  ${ET} -overwrite_original -TagsFromFile $2 "${OUTPUT}"
  ${ET} -v "-DateTimeOriginal>FileModifyDate" "${OUTPUT}"
fi

Reply via email to