Patent ID: 9262836
Filing Date: 2016-02-16
CPC Classification: G02B,G06T,H04N

Claim Text:
1. An all-focused image generation method comprising the steps of: (i) taking L images of an object at different focal positions, L indicating a natural number not smaller than two; (ii) acquiring gray scale images of the object at the respective focal positions based on the images taken in the step (i); (iii) by performing multiresolution transform for the gray scale images obtained in the step (ii), generating, for each of the focal positions, a resolution-decomposed image in which a gray scale image is decomposed to components of different frequency bands; (iv) based on the resolution-decomposed image generated in the step (iii), calculating focal position probability distribution which is probability distribution regarding the focal positions, for each pixel position of the gray scale image; (v) based on the focal position probability distribution calculated in the step (iv), acquiring an optimal focal position for each of the pixel positions; and (vi) based on the optimal focal position acquired in the step (v), acquiring, for each of the pixel positions, a pixel value corresponding to the optimal focal position from the images at the focal positions taken in the step (i), and generating an in-focus image by providing a pixel corresponding to the acquired pixel value to the pixel position, in the step (v), provided that i and j are subscripts indicating the pixel position, x