Possible HDR stitching bug + advice sought on exposure and noise

376 views
Skip to first unread message

Karmadillo

unread,
Jan 8, 2012, 6:32:51 PM1/8/12
to PTGui Support
System: Windows7 64 bit.PTGui Pro 9.1.2

First the HDR issue.
For this panorama, all renderings of this image (Panorama editor,
preview, HDR image and tonemapped) show horizontal bands from the
centre of the shot toward the right of the image. Stitched for LDR
TIFF images.
Images:
Tonemapped with PTGui
http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/SydneyBotanical-manualexposureadjustment.jpg
Tonemapped with Luminance
http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Tonemappedwithlines.jpg
Project File: [will post shortly]

Secondly the quality issue:
At Christmas I shot an LDR panorama of Christmas lights.
In the Panorama editor it looks excellent - well aligned, nice color,
nice contrast, exposures and vignetting seem perfect.
http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Previewpane.jpg

However when I preview or stitch the results are inferior as good e.g.
noise, a red/orange color cast in the sky, sky is the wrong exposure.
http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Liam-Ct-CPsnoisy.jpg

Despite 2 hours experimenting with different settings for exposure,
colour balance, response curve and so forth I can't recreate the
quality of the Panorama editor screen.
Advice sought please.
Project File: [will post shortly]

PTGui Support

unread,
Jan 9, 2012, 5:06:23 AM1/9/12
to pt...@googlegroups.com
On 9-1-2012 0:32, Karmadillo wrote:
> System: Windows7 64 bit.PTGui Pro 9.1.2
>
> First the HDR issue.
> For this panorama, all renderings of this image (Panorama editor,
> preview, HDR image and tonemapped) show horizontal bands from the
> centre of the shot toward the right of the image. Stitched for LDR
> TIFF images.
> Images:
> Tonemapped with PTGui
> http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/SydneyBotanical-manualexposureadjustment.jpg
> Tonemapped with Luminance
> http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Tonemappedwithlines.jpg
> Project File: [will post shortly]

The sky looks suspicious: I'm seeing hard edges while it should be
smooth. You first need to solve that, the banding issue is probably
related. See 6.4:

http://www.ptgui.com/support.html#6_4

> Secondly the quality issue:
> At Christmas I shot an LDR panorama of Christmas lights.
> In the Panorama editor it looks excellent - well aligned, nice color,
> nice contrast, exposures and vignetting seem perfect.
> http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Previewpane.jpg
>
> However when I preview or stitch the results are inferior as good e.g.
> noise, a red/orange color cast in the sky, sky is the wrong exposure.
> http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Liam-Ct-CPsnoisy.jpg

This is a color management issue: currently the previews in PTGui are
not color managed but the generated panorama is tagged with the correct
color profile. So actually the stitched panorama has the right colors
and the preview in PTGui is off.

If you prefer the look of the panorama editor, here's a trick: since
PTGui is not color managed it will display the previews using a standard
sRGB profile. You can assign this profile to the resulting panorama in
e.g. Photoshop: Edit - Assign Profile. But keep in mind that this
actually creates the 'wrong' colors.

Joost

Karmadillo

unread,
Jan 13, 2012, 12:14:33 AM1/13/12
to PTGui Support
Thanks for the tips.

Here are the project files that I promised to post:
HDR - http://df.arcs.org.au/quickshare/590700bed85186a7/Sydney%20Botanical.pts
There is a typo in the third sentence of my previous post. It should
be "HDR stitched from LDR Tiffs"

LDR - http://df.arcs.org.au/quickshare/54a243c526d642cb/Liam-Ct-CPsA.pts
I have also posted a vertical stripe of the output panorama at higher
resolution. At full resolution, noise, minor banding an other
artefacts are even worse.
http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Liam-Ct-outputstrip.jpg

Note that the dark areas of trees are too bright in the output
panorama and so the noise is amplified. I want to keep these areas
dark like in the preview.

The LDR pano was stitched from TIFF images. These don't have a linear
luminance profile. They have the standard curve that Adobe camera raw
applies. However in PTGui, the response curve displayed (the default)
looks like the logarithmic curve to be used to make linear RAW data
into a human friendly luminance scale. Is it possible that the wrong
curve is being applied, which is causing excessive brightening of
shadows (high contrast)?

On Jan 9, 8:06 pm, PTGui Support <supp...@ptgui.com> wrote:
> On 9-1-2012 0:32, Karmadillo wrote:
>
> > System: Windows7 64 bit.PTGui Pro 9.1.2
>
> > First the HDR issue.
> > For this panorama, all renderings of this image (Panorama editor,
> > preview, HDR image and tonemapped) show horizontal bands from the
> > centre of the shot toward the right of the image. Stitched for LDR
> > TIFF images.
> > Images:
> > Tonemapped with PTGui
> >http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20proje...
> > Tonemapped with Luminance
> >http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20proje...
> > Project File: [will post shortly]
>
> The sky looks suspicious: I'm seeing hard edges while it should be
> smooth. You first need to solve that, the banding issue is probably
> related. See 6.4:
>
> http://www.ptgui.com/support.html#6_4
>
> > Secondly the quality issue:
> > At Christmas I shot an LDR panorama of Christmas lights.
> > In the Panorama editor it looks excellent - well aligned, nice color,
> > nice contrast, exposures and vignetting seem perfect.
> >http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20proje...
>
> > However when I preview or stitch the results are inferior as good e.g.
> > noise, a red/orange color cast in the sky, sky is the wrong exposure.
> >http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20proje...

PTGui Support

unread,
Jan 13, 2012, 1:59:24 AM1/13/12
to pt...@googlegroups.com
On 13-1-2012 6:14, Karmadillo wrote:
> Thanks for the tips.
>
> Here are the project files that I promised to post:
> HDR - http://df.arcs.org.au/quickshare/590700bed85186a7/Sydney%20Botanical.pts
> There is a typo in the third sentence of my previous post. It should
> be "HDR stitched from LDR Tiffs"

It looks indeed like you shot the photos in automatic exposure mode.
Take a look at the Exposure column in the Image Parameters tab. This
should be a strictly repeating sequence, eg
1/40
1/80
1/160
1/40
1/80
1/160

etc. Also ISO is varying between shots. And you have a varying number of
brackets for each shot (some 2, some 3).

See 6.1, 6.4 and 6.6:
http://www.ptgui.com/support.html#6_4

> LDR - http://df.arcs.org.au/quickshare/54a243c526d642cb/Liam-Ct-CPsA.pts
> I have also posted a vertical stripe of the output panorama at higher
> resolution. At full resolution, noise, minor banding an other
> artefacts are even worse.
> http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20projects/Liam-Ct-outputstrip.jpg
>
> Note that the dark areas of trees are too bright in the output
> panorama and so the noise is amplified. I want to keep these areas
> dark like in the preview.
>
> The LDR pano was stitched from TIFF images. These don't have a linear
> luminance profile. They have the standard curve that Adobe camera raw
> applies. However in PTGui, the response curve displayed (the default)
> looks like the logarithmic curve to be used to make linear RAW data
> into a human friendly luminance scale. Is it possible that the wrong
> curve is being applied, which is causing excessive brightening of
> shadows (high contrast)?

As I said the display within PTGui is off, because it isn't color
managed. The color of the output should more or less match the color of
the input (unless you have used the exposure/brightness adjustment tools
in PTGui of course).

Joost

Erik Krause

unread,
Jan 13, 2012, 2:57:26 PM1/13/12
to pt...@googlegroups.com
Am 13.01.2012 07:59, schrieb PTGui Support:
> The color of the output should more or less match the color of
> the input (unless you have used the exposure/brightness adjustment tools
> in PTGui of course).

Sorry, this is true only if you use Exposure Fusion for output. For True
HDR all depends on the tonemap settings. Tonemapping boosts the shadows
and hence amplifies noise. And of course exposure correction might
lighten some images more than others which would cause amplified noise
even for LDR panoramas.

--
Erik Krause
http://www.erik-krause.de

Erik Krause

unread,
Jan 13, 2012, 3:08:07 PM1/13/12
to pt...@googlegroups.com
Am 13.01.2012 07:59, schrieb PTGui Support:
> It looks indeed like you shot the photos in automatic exposure mode.
> Take a look at the Exposure column in the Image Parameters tab. This
> should be a strictly repeating sequence, eg
[...]

> etc. Also ISO is varying between shots. And you have a varying number of
> brackets for each shot (some 2, some 3).

If you still want to get a good panorama from this images you can try to
exposure fuse them before stitching. Use a tool like f.e. EnfuseGui to
reduce each bracketed stack to a single LDR image, then stitch those
images. This might or might not work out depending on image content but
it's worth a try.

Karmadillo

unread,
Jan 16, 2012, 1:08:20 AM1/16/12
to PTGui Support
Explanation for the shutter/aperature/ISO:
The camera was in manual mode when these images were shot, fixed zoom
and focal length. However when the camera is switched to live view
mode it magically changes to an ISO priority type mode where it varies
ISO while keeping the other settings. This wrecks HDR panos!

I will try enfusing the images or HDR merging before stitching, and
see what happens.

Because of the high dynamic range of the image, some of the brackets
shot were pure black but with lots of noise because the camera
automatically ramped up the ISO. These made the final image worse so I
removed them from the pano.

I have captured the full dynamic range of the scene with this set of
photos so in theory it is possible to make an HDR pano from them. I am
not giving up on this pano yet. I am also not going back to the
location I shot it any time soon.

On Jan 13, 4:59 pm, PTGui Support <supp...@ptgui.com> wrote:
> On 13-1-2012 6:14, Karmadillo wrote:
>
> > Thanks for the tips.
>
> > Here are the project files that I promised to post:
> > HDR -http://df.arcs.org.au/quickshare/590700bed85186a7/Sydney%20Botanical.pts
> > There is a typo in the third sentence of my previous post. It should
> > be "HDR stitched from LDR Tiffs"
>
> It looks indeed like you shot the photos in automatic exposure mode.
> Take a look at the Exposure column in the Image Parameters tab. This
> should be a strictly repeating sequence, eg
> 1/40
> 1/80
> 1/160
> 1/40
> 1/80
> 1/160
>
> etc. Also ISO is varying between shots. And you have a varying number of
> brackets for each shot (some 2, some 3).
>
> See 6.1, 6.4 and 6.6:http://www.ptgui.com/support.html#6_4
>
>
>
>
>
>
>
>
>
> > LDR -http://df.arcs.org.au/quickshare/54a243c526d642cb/Liam-Ct-CPsA.pts
> > I have also posted a vertical stripe of the output panorama at higher
> > resolution. At full resolution, noise, minor banding an other
> > artefacts are even worse.
> >http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20proje...

Karmadillo

unread,
Jan 16, 2012, 1:15:32 AM1/16/12
to PTGui Support
It is possible if this weird ISO mode works as an extension of Manual
mode, and if the difference in ISO is taken into consideration, the
exposure of the images could be identical (or very close).
Perhaps I can make a copy of the images and manipulate the EXIF data
so that the ISO, shutter speed, and aperture are equal across the
bracketed sets. If that is mathematically correct, PTgui may stitch
the photos successfully.

PTGui Support

unread,
Jan 16, 2012, 5:19:45 AM1/16/12
to pt...@googlegroups.com
When calculating the actual EV of the images, PTGui takes into account
the exposure time, aperture and ISO of the images. So it is calculating
the actual amount of light captured during the exposure; if PTGui says
the images are taken at different exposures, they truly are.

But you can override the EXIF data by entering custom values in the
Image Parameters tab, also see 6.5:
http://www.ptgui.com/support.html#6_5

Joost

Erik Krause

unread,
Jan 16, 2012, 2:31:39 PM1/16/12
to pt...@googlegroups.com
Am 16.01.2012 07:08, schrieb Karmadillo:
> However when the camera is switched to live view
> mode it magically changes to an ISO priority type mode where it varies
> ISO while keeping the other settings.

Which camera? If it is a Canon EOS set LiveView mode to exposure
simulation...

Karmadillo

unread,
Jan 31, 2012, 7:47:43 PM1/31/12
to PTGui Support
It is a Canon.
I'm aware of the fix, however ever time the camera powers off it
resets LiveView mode to movie+stills undoing the previous settings.
Next suggestion: change the auto power off settings so this doesn't
happen. Answer: I shoot in very hot conditions and the camera sensor
temperature climbs fast. Auto power off is useful.

Karmadillo

unread,
Jan 31, 2012, 8:00:11 PM1/31/12
to PTGui Support
OK - here is the final outcome:
The HDR panorama worked well when converted to HDR segments and then
stitched.
Here is the result:
http://www.360cities.net/image/sydney-royal-botanic-gardens-harbour-foreshore
No blending lines, no tearing in the middle, no vortices or seam at
the +-180degree boundary.
Photoshop provided the tomeapping using the EXR output of PTGui.

The night-time Christmas lights panorama.
Used Adobe Camera RAW to make Tif files and then stitched this using
the Tif files.
Will publish to this address: http://www.360cities.net/image/immersed-in-christmas-lights
At the time of posting this shows a low res version with some levels/
curves issues, however I will publish the finished one over the top
when I have edited out the vehicle number plates.



On Jan 13, 4:59 pm, PTGui Support <supp...@ptgui.com> wrote:
> On 13-1-2012 6:14, Karmadillo wrote:
>
> > Thanks for the tips.
>
> > Here are the project files that I promised to post:
> > HDR -http://df.arcs.org.au/quickshare/590700bed85186a7/Sydney%20Botanical.pts
> > There is a typo in the third sentence of my previous post. It should
> > be "HDR stitched from LDR Tiffs"
>
> It looks indeed like you shot the photos in automatic exposure mode.
> Take a look at the Exposure column in the Image Parameters tab. This
> should be a strictly repeating sequence, eg
> 1/40
> 1/80
> 1/160
> 1/40
> 1/80
> 1/160
>
> etc. Also ISO is varying between shots. And you have a varying number of
> brackets for each shot (some 2, some 3).
>
> See 6.1, 6.4 and 6.6:http://www.ptgui.com/support.html#6_4
>
>
>
>
>
>
>
>
>
> > LDR -http://df.arcs.org.au/quickshare/54a243c526d642cb/Liam-Ct-CPsA.pts
> > I have also posted a vertical stripe of the output panorama at higher
> > resolution. At full resolution, noise, minor banding an other
> > artefacts are even worse.
> >http://i198.photobucket.com/albums/aa290/rich_the_stitch/Pano%20proje...

Karmadillo

unread,
Jan 31, 2012, 9:20:43 PM1/31/12
to PTGui Support
I should clarify, the HDR segments were EXR files produced by ACR and
Photoshop.

On Feb 1, 11:00 am, Karmadillo <directrix.digi...@gmail.com> wrote:
> OK - here is the final outcome:
> The HDR panorama worked well when converted to HDR segments and then
> stitched.
> Here is the result:http://www.360cities.net/image/sydney-royal-botanic-gardens-harbour-f...

Erik Krause

unread,
Feb 1, 2012, 2:02:05 PM2/1/12
to pt...@googlegroups.com
Am 01.02.2012 01:47, schrieb Karmadillo:
> I'm aware of the fix, however ever time the camera powers off it
> resets LiveView mode to movie+stills undoing the previous settings.

Really? My 5DII doesn't do that. If you have custom modes, use one of
them to store the settings. I have one for bracketed panoramas and one
for exposure controlled HD Video...

Joergen Geerds

unread,
Feb 1, 2012, 2:17:43 PM2/1/12
to pt...@googlegroups.com
On Wednesday, February 1, 2012 2:02:05 PM UTC-5, Erik Krause wrote:
Am 01.02.2012 01:47, schrieb Karmadillo:
> I'm aware of the fix, however ever time the camera powers off it
> resets  LiveView mode to movie+stills undoing the previous settings.

Really? My 5DII doesn't do that. If you have custom modes, use one of
them to store the settings. I have one for bracketed panoramas and one
for exposure controlled HD Video.

totally agree... the 5dm2 doesn't do any funny business like that... 

Karmadillo

unread,
Feb 2, 2012, 1:25:26 AM2/2/12
to PTGui Support
Yes its a 5DII.
It is occurring when I use the custom modes on the dial. C1 is
currently for HDR panos, C2 is for LDR panos, C3 is for using my home-
made tilt and shift lens.
Strangely it doesn't happen if I set the camera to manual mode and set
everything I need for panoramas. It remembers those when it powers off
and back on.

I am not yet on the latest firmware for the camera. Maybe it will be
better once I update that.

Ken Warner

unread,
Feb 3, 2012, 12:45:08 PM2/3/12
to pt...@googlegroups.com

I have a project that produces a final blended image that is slightly different than the detail viewer shows. That difference makes it hard to mask out stitching errors.

Here's a screen shot and a project file.

http://pancyl.com/DetailView.jpg

http://pancyl.com/HighSpot.pts

PTGui Support

unread,
Feb 3, 2012, 9:45:33 PM2/3/12
to pt...@googlegroups.com
Hi Ken,

For several reasons the blending in the detail viewer may not match the
blending in the actual panorama.

For example your panorama is blended as an equirectangular image while
the detail viewer is blended as a rectilinear image. Also the detail
viewer currently ignores the blend feather setting (it's planned to
support this in a future update though). And for proper blending the
detail viewer should take into account the image contents outside of the
detail viewer area, but it doesn't. Improving this would make the viewer
extremely slow since it would in fact need to stitch and blend the full
panorama in the background.

Joost

Ken Warner

unread,
Feb 3, 2012, 10:46:18 PM2/3/12
to pt...@googlegroups.com
I understand. But could you not take a portion of the pano editor buffer and just enlarge it? The fidelity of the image would be degraded but it might be good enough to detect stitching errors. Just wondering...

PTGui Support

unread,
Feb 6, 2012, 5:03:59 AM2/6/12
to pt...@googlegroups.com
It would get so blurry that users will think something is wrong..

But indeed you could look at the panorama editor (maybe enlarge the
window), it should give a more realistic blending preview.

Joost

Ken Warner

unread,
Feb 6, 2012, 10:18:02 AM2/6/12
to pt...@googlegroups.com
Ok. Thanks.
Reply all
Reply to author
Forward
0 new messages