Patent ID: 9569884
Date: 2017-02-14
CPC Classifications: G06T

Claim:
1. A method of generating shadows in an image representing a scene, intended to be implemented in an image processing unit, wherein the method comprising: Computing a depth-map that comprises an array of pixels, wherein pixels in the depth-map are associated to a single value corresponding to depth value that indicates a depth from a light source to a portion of nearest occluding object visible through the pixel, projecting a point visible through a pixel of said image into a light space, the result of said projection being a pixel of said depth-map, calculating a distance between the said visible point and the light source, fetching the depth value associated with said pixel of depth-map, computing, for said pixel of said image, an adaptive bias by dividing a determined base bias by a vector dot product of a normal of a surface on which the said visible point is located and incident light direction at said visible point, said determined base bias being a constant value for the scene; comparing for said pixel in the image, the distance between said visible point and the light source with a sum of the corresponding depth map value and said adaptive bias, labelling said point visible through said pixel as lit or shadowed according to said comparison.