Exposure fusion errors when exporting to 16 bit TIFF (or PSD) with size >= 10000 pixels on long side

109 views
Skip to first unread message

Dominik Hölzl

unread,
Mar 5, 2022, 5:51:32 PM3/5/22
to PTGui Support
I have a problem when exporting a panorama to 16 bit TIFF or PSD (whatever format that supports 16 bit). The panorama displays correctly in the panorama editor and renders correctly when the output size is smaller or equal 5000 pixels on the long side, but as soon as I increase the output size (I don't know the exact value from which the problem occurs), the output contains a lot of dark "spots", it seems that the automatic exposure correction gets wrong on some panels. I am using the exposure fusion option.

Is this a known bug?

I can provide the project if necessary to reproduce the problem.

Regards,
Dominik

Dominik Hölzl

unread,
Mar 5, 2022, 6:11:59 PM3/5/22
to PTGui Support
The dark patches occur randomly, switching on and off the exposure fusion option or changes to the exposure / HDR settings changes the pattern of the dark spots.

The following images are outputed from the same project without any modidfication (except the output format):

Rendered OK using the preview function (the black areas are masked out and intended):

OK.jpg


Rendered to PSD. Note the dark (and bright) patches.

Problem1.jpg

Rendered to TIFF. Random different errors:

Problem2.jpg

Regards,
Dominik

PTGui Support

unread,
Mar 6, 2022, 10:02:34 AM3/6/22
to pt...@googlegroups.com
Hi Dominik,

I would need to investigate. Could you make your project file and source
images available? You can share them with sup...@ptgui.com using your
favorite file sharing service.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 06/03/2022 00:11, Dominik Hölzl wrote:
> The dark patches occur randomly, switching on and off the exposure
> fusion option or changes to the exposure / HDR settings changes the
> pattern of the dark spots.
>
> The following images are outputed from the same project without any
> modidfication (except the output format):
>
> Rendered OK using the preview function (the black areas are masked out
> and intended):
>
> OK.jpg
>
>
> Rendered to PSD. Note the dark (and bright) patches.
>
> Problem1.jpg
>
> Rendered to TIFF. Random different errors:
>
> Problem2.jpg
>
> Regards,
> Dominik
> Dominik Hölzl schrieb am Samstag, 5. März 2022 um 23:51:32 UTC+1:
>
> I have a problem when exporting a panorama to 16 bit TIFF or PSD
> (whatever format that supports 16 bit). The panorama displays
> correctly in the panorama editor and renders correctly when the
> output size is smaller or equal 5000 pixels on the long side, but as
> soon as I increase the output size (I don't know the exact value
> from which the problem occurs), the output contains a lot of dark
> "spots", it seems that the automatic exposure correction gets wrong
> on some panels. I am using the exposure fusion option.
>
> Is this a known bug?
>
> I can provide the project if necessary to reproduce the problem.
>
> Regards,
> Dominik
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/1c1bb249-d189-41d0-a358-dfc8c0b83793n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/1c1bb249-d189-41d0-a358-dfc8c0b83793n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Dominik Hölzl

unread,
Mar 7, 2022, 4:30:18 PM3/7/22
to PTGui Support
Thank you for the quick reply!

I figured out that the source of the problem was that the exposure time in the EXIF data of the source TIFF files was wrong in some images. Some Images showed 4 minutes of exposure time, some 30 seconds, but all images were actually exposed 4 minutes.

I prepared them in PS and aligned each panel with another shot for multiple panorama layers (I applied different filters for each shot while shooting) and exported the layers in each panel separately - PS always took the EXIF data from the last opened image which was correct only for one layer but not the other, and I opened the layers in different orders. 

When I first saw the panorama in the panorama editor I noticed that the output was quite odd (lots of dark and bright patches everywhere - different to that what I reported), but as soon as I activated the exposure fusion all looked and worked fine - except the big size export.

So far I could not reproduce the problem with resized smaller source images (but same alternating EXIF data), the complete project is more than 4 GB in size, I am currently not able to upload that amount of data.

After correcting the exposure value in the image parameters the problem disappeared.

Another thing to notice is that if I use GPU rendering sometimes I can see black lines or black rectangles randomly spread over the image in the final panorama file. Restarting PTGui or switching to CPU rendering resolves this. GPU engine: AMD Radeon R9 M380.

Regards,
Dominik

PTGui Support

unread,
Mar 8, 2022, 6:20:11 AM3/8/22
to pt...@googlegroups.com
On 07/03/2022 22:30, Dominik Hölzl wrote:
> Another thing to notice is that if I use GPU rendering sometimes I can
> see black lines or black rectangles randomly spread over the image in
> the final panorama file. Restarting PTGui or switching to CPU rendering
> resolves this. GPU engine: AMD Radeon R9 M380.

Yes this is a known problem, for which I don't have a solution
unfortunately, other than disabling GPU acceleration. It happens on
Intel Macs with AMD GPUs. I suspect it's an issue in Apple's OpenCL
driver but I've not been able to narrow it down to a small reproducable
bug report (and Apple have deprecated OpenCL so I don't have high hopes).

Joost

pedro Cereza

unread,
Mar 17, 2022, 5:50:38 AM3/17/22
to PTGui Support
I just had this kind of problem: ( Mojave AMD radeon RX480)

i used a mask and  in the editor option Blending/ redmasks - transparant.

I f i put it on blending / red mask / Use Only to Adjust Seams  
the problem seems to go...!
could be luck ...

Op dinsdag 8 maart 2022 om 12:20:11 UTC+1 schreef PTGui Support:
Schermafbeelding 2022-03-17 om 00.48.19.jpg
Reply all
Reply to author
Forward
0 new messages