Maybe in the future, but for now I'm concentrating on panoramic stitching..
Joost
> Possible methods of shooting:
> 1) Shoot the entire panorama at one focus distance, change focus,
> reshoot entire pano, change focus, reshoot, repeat.
Not good. Most likely the single panoramas won't stitch such that you
can overlay them. You won't be able to use a template like for exposure
stacks since parallax and magnification changes. If you stitch each
panorama separately you most likely won't get a good alignment (which is
crucial for focus stacking) since small errors add up from image to image.
> 2) My normal workflow would be to shoot the entire panorama with the
> best overall focus distance, and then go back and shoot any areas that
> require different focus distances.
Not good either. See above.
> 3) Shoot the entire panorama once, each frame focusing several times
> and taking shots. Very slow, requires looking through view finder and
> using DOF-preview to determine that you've captured everything in that
> frame in focus.
First you should determine the nearest and furthest focus distance you
need. Then you decide for the steps you need for the whole thing and
shoot a focus stack for all positions.
This way you have the same number of images for every stack and can
select simply by number and choose a master focus plane to anchor all of
them to. You can align them in PTGui allowing individual FoV for any but
the anchor focus plane and use enfuse (instead of enblend) to fuse them.
Another benefit is that you can use the focus stack with most alignable
images as a template for the other ones.
For efficient use of enfuse for focus stacks see the new manual at
http://wiki.panotools.org/Enfuse_reference_manual
The last step is to stitch the panorama from the resulting images of
each focus stack.
--
Erik Krause
http://www.erik-krause.de
> You can align them in PTGui allowing individual FoV for any but
> the anchor focus plane and use enfuse (instead of enblend) to fuse
> them.
Hi Erik:
Do you mean that all images in a focus stack have different FoV? even
though they are shot at the same focal length?
Juan
> Do you mean that all images in a focus stack have different FoV? even
> though they are shot at the same focal length?
What actually changes is the magnification. If you align a focus stack,
the rear end of the DoF range of one shot must be aligned with the front
end of the other. If conventionally focused (using the focus ring of the
lens) each image has a different magnification, hence the FoV must be
changed to align them.
Even in macro-photography, where you use a slide to focus the
magnification at the rear and front end of the DoF range is different
for conventional lenses.
Field of view and focal length are not that directly related as it seems
(and many books tell). Other factors (especially the entrance pupil
location) influence them. The extreme example would be a telecentric
lens, where the entrance pupil is at infinity behind the lens (!) The
field of view (or better angle of view) for such lenses is 0.0°, that
is: the actual field of view (the visible area) is always as large as
the entrance pupil, no matter what distance. Those lenses are best for
macrophoto focus stacks, since the magnification doesn't change
throughout the DoF range and there is no parallax between adjacent images.
For in-depth reading see
http://www.janrik.net/PanoPostings/NoParallaxPoint/TheoryOfTheNoParallaxPoint.pdf
(same link short: http://tinyurl.com/d29lu )
More on telecentric lenses and their use for focus stacks (with a really
nice example): http://www.photomacrography.net/forum/viewtopic.php?t=1032
Search
> Do you have to shoot a focus stack for each position, or can you mix
> focuse fused images with non-focus fused? Luca mentioned "the
> focusing fused ones ARE with a different focal lenght... " is this a
> problem to mix different focal lengths when stitching?
More or less. Basically you can mix images from large and small focus
stacks and even single shots. Once the images are fused PTGui doesn't
know anything about the stacking - they are just normal images. However,
the Filed of View might be different. This is no big problem, since
PTGui can deal with individual lens parameters for single images.
There is another disadvantages of not using the same number of images
for each stack: You will need to select the images manually. If you have
f.e. 5 images each stack you can simply chose images 1-5 for stack one,
6-10 for stack two and so on.
But of course there is little point shooting images with only blurred
content. Some cameras record the focus distance in exif data. In this
case you can use f.e. exiftool to determine focus stacks.
I do this in a similar way with exposure info in my
enfuse_auto_droplet.bat: It enfuses images as long as their lightvalue
increases and starts a new bracketing stack if it decreased (assuming
that exposure stacks where shot with increasing exposure of course). Get
the batch file from http://www.erik-krause.de/enfuse_droplets.zip
> 1) "select simply by number and choose a master focus plane to anchor
> all of them to"
Doing as described above you get a number of focus stacks. You should
decide for a master focus plane, lets say image 3 in each stack in above
example. This image's FoV will not be changed. Images 1, 2, 4 and 5 will
be changed.
> 2) "align them in PTGui allowing individual FoV for any but the
> anchor focus plane"
If you shot the images without moving the camera only FoV should change
between the images and if you could precisely repeat focus positions you
can use one stack as a template for each other which you can use without
optimizing. If you need to align Yaw, Roll and Pitch as well or if you
couldn't precisely repeat the focus position, this won't be possible and
you will have to optimize each stack.
> 3) "In ptgui there are some nice tricks to optimize the images in
> GROUPS."
I think Luca means the advanced Optimizer tab where you can select and
deselect groups of images for optimization easily.
> I think I could speed things up if I could save the alignment data for
> the stacks, so that it doesn't have to be generated each time. On
> occassion, some stacks aren't turning out, must be a problem with the
> control points that were generated. Is there any way for me to create
> the alignment data from an ideal set, and then save and reuse for all
> the other stacks?
If you use PTGui to align the stacks you can use any stack as a
template for the others. I suspect this is even batchable if you have
the latest pro version, but I never tried.
align_image_stack can output a .pto file (a derivative from
PTStitcher script file syntax), which can be used with nona (the
hugin command line stitcher): http://wiki.panotools.org/Nona
http://wiki.panotools.org/Align_image_stack
This would require some shell script programming especially since any
second focus stack is in reverse order. But since you managed this
already for align_image_stack it should be little problem.
More info on PTStitcher scripts and command line usage on
http://wiki.panotools.org/PTStitcher
best regards
Erik Krause
http://www.erik-krause.de