ImageFocusCombine
ImageFocusCombine[{image1,image2,…}]
combines differently focused images imagei of the same scene to obtain a single well-focused image.
Details and Options
- ImageFocusCombine is also known as focus stacking or Z-stacking. It is typically used for combining multiple images of the same scene taken at different focus distances and creates an image with a higher depth of field (DOF).
- ImageFocusCombine assumes all imagei are aligned.
- ImageFocusCombine takes a PerformanceGoal option. Possible settings include:
-
"Quality" optimize for quality of final results "Speed" optimize for speed of getting results
Examples
open allclose allOptions (2)
PerformanceGoal (2)
Use PerformanceGoal->"Quality" to emphasize quality of the result:
Use PerformanceGoal->"Speed" to emphasize speed of computation:
Applications (1)
Properties & Relations (1)
Possible Issues (2)
ImageFocusCombine does not correct for misalignment:
Use ImageAlign to align the images before combining them:
In some cases the misalignment is too large and cannot be corrected automatically:
This usually results in a ghosting effect:
Manually remove the most misaligned images from the stack to mitigate the ghosting effect:
Text
Wolfram Research (2015), ImageFocusCombine, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageFocusCombine.html.
CMS
Wolfram Language. 2015. "ImageFocusCombine." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ImageFocusCombine.html.
APA
Wolfram Language. (2015). ImageFocusCombine. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageFocusCombine.html