Menu

#164 cannot open EXR files generated by hugin

Luminance_HDR_2.3.0
open
nobody
None
1
2013-07-14
2013-07-13
georg
No

Hi,

a hugin generated hdr panorama is opened when it is in TIF but not in EXR format.

Error message is:

luminance-hdr -v 2013-07-06_180713-2013-07-06_180739_hdr.exr
"/home/georg/.LuminanceHDR/saved_parameters.db"
Database opened
TH: catched exception
TonemappingPanel::~TonemappingPanel()

Greetings,

Georg

1 Attachments

Discussion

  • Franco Comida

    Franco Comida - 2013-07-13

    Hi Georg,

    I opened the file without problems with the development version, so I guess the bug have been fixed.

     
  • georg

    georg - 2013-07-13

    Hi Franco,

    Thanks a lot!

    I compiled from source and I can now open the exr file.

    However in cli there is an error processing the file:

    luminance-hdr-cli -l test.exr -t fattal -o fattal.jpg
    I18NDIR: /usr/local/share/luminance-hdr/i18n

    pfstmo_fattal02 (alpha: 1, beta: 0.9. saturation: 1, noise: 0.01, fftsolver: 1)

    pde residual error: 0.000258
    Speicherzugriffsfehler (Speicherabzug geschrieben)

    This what not before. Same mistake for mantiuk and reinhard.

    What can I do ?

    Any help appreciated.

    Greetings,

    Georg

     
  • Franco Comida

    Franco Comida - 2013-07-13

    Oh that's not an error, it's just a debug info, you should compile for release to avoid debug messages, but it's better to keep it in debug mode so we can have your feedback :)

    Best,
    Franco

     
  • georg

    georg - 2013-07-13

    No, the programme stops in English this is core dumped

    on dmesg I find:

    [ 4950.350706] luminance-hdr-c[9682]: segfault at b8 ip 0000000000438a17 sp 00007fff71912450 error 4 in luminance-hdr-cli[400000+165000]

    Greetings,

    Georg

     
  • Franco Comida

    Franco Comida - 2013-07-13

    Hehe it works for me, there's a bug in 2.3.1 commandline, are you using that version?
    You said you compiled from source, which version? I can give you a patch for fixing it in the meantime or better try our development branch new-editing from git.

     
  • georg

    georg - 2013-07-13

    Good for you ;)

    I downloaded the tar from Sourceforge 2.3.1. In the gui it says: 2.3.1 [Build GITDIR]

    Is that the development version?

    Georg

     
  • Franco Comida

    Franco Comida - 2013-07-13

    That's the source code for 2.3.1 with the cli bug inside. If you are brave enough try to download from the repository, git clone git://git.code.sf.net/p/qtpfsgui/code qtpfsgui-code, then checkout new-editing branch and compile it. Many new features and bug fixing included (quite stable tough). If you need any help just let me know and btw you need git installed

     
  • georg

    georg - 2013-07-14

    Hi Franco,

    thanks a lot - it works now!

    I downloaded a snapshot from the git page.

    Here a script I find quite useful in conjunction with Thunar user-defined scripts:

    !/bin/bash

    might not work correctly when spaces are in filenames

    inputfiles=$@
    firstfile=$1
    lastfile=${@: -1}
    outputfile_base=${firstfile%%.}"_"${lastfile%%.}

    EXIFTOOL_COPY_ARGS="-ImageDescription -Model -Make -Artist -WhitePoint -Copyright -GPS:all -DateTimeOriginal -CreateDate -UserComment -OwnerName -SerialNumber -Orientation -FNumber -ApertureValue -ISO -CameraISO -Flash -MacroMode -DigitalZoom -AESetting -ImageStabilization -SpotMeteringMode -Rotation -OwnerName -AFAreaMode -AspectRatio -ExifImageWidth -ExifImageHeight -ImageHeight -ImageWidth -Quality -FocalLength -FocalLength35efl -HyperfocalDistance -ColorSpace -FOV"

    luminance hdr tends to fail when multiple processes are running therefore waiting previous instance of luminance hdr to finish

    while (pgrep "luminance-hdr"); do
    sleep 1; echo "sleeping"
    done

    echo "==== creating hdr-image ==> $outputfile_base".hdr""
    luminance-hdr-cli -a AIS -s $outputfile_base".hdr" $inputfiles

    echo ".... making ldr Fattal ==> $outputfile_base"_fattal.jpg""
    luminance-hdr-cli -l $outputfile_base".hdr" -t fattal -o $outputfile_base"_fattal.jpg"
    echo ".... making ldr Mantiuk08 ==> $outputfile_base"_mantiuk08.jpg""
    luminance-hdr-cli -l $outputfile_base".hdr" -t mantiuk08 -o $outputfile_base"_mantiuk08.jpg"
    echo ".... making ldr Reinhard05 ==> $outputfile_base"_reinhard05.jpg""
    luminance-hdr-cli -l $outputfile_base".hdr" -t reinhard05 -o $outputfile_base"_reinhard05.jpg"

    echo "... transfering metadata to LDRs"
    exiftool -keywords=HDR -overwrite_original -tagsFromFile $firstfile $EXIFTOOL_COPY_ARGS $outputfile_base"_fattal.jpg"
    exiftool -keywords=HDR -overwrite_original -tagsFromFile $firstfile $EXIFTOOL_COPY_ARGS $outputfile_base"_mantiuk08.jpg"
    exiftool -keywords=HDR -overwrite_original -tagsFromFile $firstfile $EXIFTOOL_COPY_ARGS $outputfile_base"_reinhard05.jpg"

    The generated LDRs give a first impression which pictures are useful for further optimizations.

    Greetings,

    Georg

     
  • georg

    georg - 2013-07-14

    terrible automatic formatting ;)