Stacked output size varies slightly - problems with HDR

Announcement of new releases, bugs, support, suggestions
Post Reply
nathanm
Posts: 2
Joined: 22.08.2022 00:23

Stacked output size varies slightly - problems with HDR

Post by nathanm »

I make focus stacked HDR pictures, using Helicon but I have a problem with Helicon's stacked output file sizes.

Here is the background. To make a focused stacked HDR image, I take a series of photos at different focal points - as one typically does for Helicon - at one exposure. Focal points are chosen by Canon built-in "focus bracketing" on Canon R3 or R5 camera, and range from 2 frames to 100 frames. Then I change exposure (by say 1 f-stop) and take another set of frames at different focal points. I typically do this 5 times. This is for a landscape photo taken on a tripod.

Processing begins by using Helicon to focus stack the frames from each exposure level. This gives me 5 focus stacked frames, one for each exposure level. I then use HDR software to merge these into one HDR file.

The problem is that Helicon sometimes makes files of slightly different sizes. In a recent example, I had 5 exposure levels, and two of the frames came out at the original camera frame size of 6000 x 4000, and three frames came out at 5998 x 4000.

The problem is that HDR software (such as SNS HDR, or Photoshop) will refuse to merge files of different size - even if off by only 1 or 2 pixels.

I assume that the reason Helicon creates different sizes is some difference in image scaling, or image alignment. In a lot of cases the results have identical sizes but I run into this problem fairly often - a couple times this weekend, prompting this post.

Here are my questions:

1. Is there a way to make Helicon keep the sizes the same as the original (camera) image size? Or a setting where this would not occur?

2. I am not sure if the difference between the 6000 x 4000 and 5998 x 4000 frames is a scaling difference, or a crop. If I knew which one it was I could then process the images to either re-scale them, or crop them accordingly after stacking but before the HDR merge was attempted.

3. A different solution would be to make HDR files first. These would be 32 bit TIFF files, or EXR or HDR files from all of the frames taken at different exposures at a single focal point. Then I would use Helicon to focus stack the HDR files. I don't know if Helicon accepts HDR files as input, but I presume that the code uses an internal 32 bit or 64 bit pixel format, so in principle it ought to be able to stack HDR files with at most a change in importing and exporting.

Any other suggestions would also be welcome!

Nathan
BobStone
Posts: 65
Joined: 03.06.2017 10:13

Re: Stacked output size varies slightly - problems with HDR

Post by BobStone »

Most likely, the different sizes are due to focus breathing. HF crops your stack to eliminate edge pixels in frames that are missing in other frames. (BTW, Photoshop does not do this and in many cases produces an output image with out-of-focus edge pixels. These would need to be eliminated by slightly cropping the image. So HF does this for you.)

To get HDR software to work, simply open the HDR images as layers in PS, align them, crop to the same final size. Then 'Export Layers to Files'. HDR should the work for you. (LR & Bridge both have a menu option for loading multiple images as Layers in PS.)
nathanm
Posts: 2
Joined: 22.08.2022 00:23

Re: Stacked output size varies slightly - problems with HDR

Post by nathanm »

You are probably right that it is a difference in rescaling (focus breathing). However it isn't clear to me why this should yield different sizes based only on the exposure changing. But it does.

A friend has pointed out that there is an option for Helicon Focus not to crop the result - that seems to fix the problem.

Nathan
User avatar
Catherine
Posts: 1163
Joined: 29.04.2019 22:38

Re: Stacked output size varies slightly - problems with HDR

Post by Catherine »

Hello Nathan, to solve the problem of different sizes, un-tick the "Crop output automatically" in the preferences - Autoadjustments. I'm not 100% sure this will not cause misalignment issues between individual frames of your HDR stack, though. So maybe BobStone's suggestion is better.

You could also HDR-merge first and then focus-stack, but we recommend against it because the exposure of your different HDR-merged frames may vary. Helicon Focus will still render the result and it will be acceptable, just maybe worse than in the ideal circumstances. Of course, you could also get HDR images with identical exposure and it won't be a problem, but as a rule of thumb, focus-stacking first is the more reliable way.
Post Reply