The more modern Cameras of the OM-D body line of Olympus have some auto stacking feature.
Not to be mistaken withthe focus bracketing. With the bracketing you can create up to 99 images with each of them some slightly different focal pane. This is to stack them in a PC.
With focus stacking the stacking is done already within the camera body. That works surprisingly well even handheld. This example was taken on a stady tripod. (Stacked with the Focus Stacker App on a Mac.)
In the macro field the depth of field is horribly short due to the large image scale. The only thing you can do is close the aperture, but ...
- Doing so results in diffraction. Some think that was horrbile. That is certainly not the case but it is clearly noticiable. See my article about diffraction.
- Often f/22 or /32 or whatever the maximum aperture of your lens is, does not provide enough depth of field. A portriat might be sharp from the tip of the nose to the horizon but a macro certainly not.
Focus stacking begins with several photos, bracked in a way that the focal pane is slightly different on each of them. This resuls in a number of images where the most part is blurry but every (important) part of the image is perfectly sharp in at least one of the bracket series. (I think there is a stacking function in photoshop but from what I read not many people actually recommend that.
As I said before, some cameras can do that in-body already. This is what I am about to demonstrate here.
When you stack them manually then you start with scaling each of them in a way that all parts of the image are of the same size. This is because focussing is always a bit like zooming.
Then you compose them in gimp, photoshop, etc. in a way that you use only the perfectly sharp parts of each image.
That is a lot of work. And that is why there is software specialized for this task.
The tricky part of that task is to set the step width of the focus between two individual shots and the aperture in a way the distance of the focus pane of two neighboured images match the depth of field well.
See this pictures. The aperture was f/6.7, the lens an M.Zuiko 30mm 2.8 macro. The first one shows an individual shot of the bracketing with the focal pane quite close to the camera. Then we see some stacks, one with step with of 5, 7 and 10. (1 is the smallest and 10 the largest value available) Values smaller than 5 are useful only with quite large image scales, such as typical insect macros. Finally there is one image stacked with the mac software Focus Stacker.
The samples were takein with the OM-D E-M5 mark II and the M.Zuiko 30mm macro lens.
Conclusion:
The auto stacking feature comes handy when you want to create macros "on the go" with some larger depth of field than a closed appertrue would allow for. You should store the bracketed photos, too, so that you can repeat the stacking in the post processing. However, when you need really good results, then you should use a tripot and create some way larger bracketing than 8 images and rely on the post processing.