pfstmo_mantiuk06 not converging

54 views
Skip to first unread message

Sharad Birmiwal

unread,
May 19, 2011, 2:07:57 AM5/19/11
to pfstools
Hi,


I am new to hdr and found this tutorial [1] to follow. In the first
tonemapping step (pfsin pfs.hdr | pfstmo_mantiuk06 -e 1 -s 1 |
pfsgamma --gamma 2.2 | pfsoutimgmagick pfstmo_mantiuk06.tif), the
process seemed to get stuck and it showed "completed -2147483648%".
After I tampered with my input images (resized them to 10% of original
size and converted them to jpg) and fixed the filenames in hdrgen.txt
and added some fprintf(stderr, ..) in src/mantiuk06/
contrast_domain.cpp to debug, I realized that the pfstmo_mantiuk06
wasn't stuck but after a while returned:

"completed -2147483648%
pfstmo_mantiuk06: Warning: Not converged (hit maximum iterations),
error = -nan (should be below 0.001)."

What could be the cause for it? My original tiff images were ~35MB in
size. The jpgs are about 10KB. I am running Ubuntu 10.10 and have
pfstools-1.8.1-2build1 (Ubuntu labeling?) installed. I also have
pfstmo-1.4-1 (also tried pfstmo_mantiuk06 after compiling version 1.4
myself).

Can I provide any more information?


Thanks,
Sharad

[1]. http://photoblog.edu-perez.com/2009/02/hdr-and-linux.html

Sharad Birmiwal

unread,
May 20, 2011, 3:19:26 PM5/20/11
to pfstools
> "completed -2147483648%
> pfstmo_mantiuk06: Warning: Not converged (hit maximum iterations),
> error = -nan (should be below 0.001)."
>
> [1]. http://photoblog.edu-perez.com/2009/02/hdr-and-linux.html

I ran "pfsin pfs.hdr | pfsview" to realize the image was blank. After
some hit and trial, I realized that removing the "-b 16" option in
pfshdrcalibrate helped create a non-black pfs.hdr. I get the following
output now (oddly, the progress percentage started from negative and
stopped at 79%):

$ pfsin pfs.hdr | pfstmo_mantiuk06 -e 1 -s 1 | pfsgamma --gamma 2.2 |
pfsoutimgmagick pfstmo_mantiuk06.tif
completed 79%%


pfstmo_mantiuk06: Warning: Not converged (hit maximum iterations),

error = 0.00415135 (should be below 0.001).

The file pfstmo_mantiuk06.tif was created and I guess that should be
the expected result.


Thanks,
Sharad

Rafal

unread,
May 21, 2011, 5:06:46 AM5/21/11
to pfstools
Hi Sharad,

Please tell us which version of pfstools, pfscalibration, and pfstmo
you are using.

It is difficult to find a problem if we do not have images we can
reproduce the problem on. Could you post these images?

Rafal

On May 20, 8:19 pm, Sharad Birmiwal <sharadbirmi...@gmail.com> wrote:
> > "completed -2147483648%
> > pfstmo_mantiuk06: Warning: Not converged (hit maximum iterations),
> > error = -nan (should be below 0.001)."
>
> > [1].http://photoblog.edu-perez.com/2009/02/hdr-and-linux.html

Sharad Birmiwal

unread,
May 23, 2011, 2:05:27 AM5/23/11
to pfst...@googlegroups.com
On Sat, May 21, 2011 at 5:06 AM, Rafal <man...@googlemail.com> wrote:
> Hi Sharad,
>
> Please  tell us which version of pfstools, pfscalibration, and pfstmo
> you are using.


Sorry for the late reply. As I said before, pfstools-1.8.1-2build1 (on
Ubuntu 10.10), pfstmo-1.4-1, and pfscalibration-1.5.

> It is difficult to find a problem if we do not have images we can
> reproduce the problem on. Could you post these images?

I have 9 photos and each is 35 MB. Is it sufficient to just upload
pfs.hdr or would you also need individual photos as well?


Thanks,
Sharad

Reply all
Reply to author
Forward
0 new messages