ImageFocusCombine
ImageFocusCombine[{image1,image2,…}] combines differently focused images imagei of the same scene to obtain a single well-focused image.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.