Patent ID: 9639947
Date: 2017-05-02
CPC Classifications: G06T

Claim:
1. A method for determining a depth map of an image comprising: normalizing the image with a difference of local maximum and minimum values; determining a first focus measure of a first color in at least one region of the normalized image, the first focus measure corresponding to a first blur amount estimated by a first summation of squared magnitudes of gradients of the first color in multiple directions; determining a second focus measure of a second color in the at least one region of the normalized image, the second focus measure corresponding to a second blur amount estimated by a second summation of squared magnitudes of gradients of the second color in said multiple directions; determining a third focus measure of a third color in the at least one region of the normalized image, the third focus measure corresponding to a third blur amount estimated by a third summation of squared magnitudes of gradients of the third color in said multiple directions; determining a ratio including the first focus measure, the second focus measure, and the third focus measure; and determining the depth map based on the ratio including the first focus measure, the second focus measure, and the third focus measure.