Patent ID: 8805056

Claim:
A computer-implemented method for determining planar surface geometry for image personalization comprising: receiving a two-dimensional (2D) image having a selected location within the image for personalization; automatically growing a region around the selected location in the 2D image; automatically estimating parameters required for deriving three-dimensional (3D) planar geometry of the grown region; and determining the 3D planar geometry of the grown region as a function of the estimated 3D parameters; wherein estimating parameters for deriving 3D planar geometry of the grown region further comprises: performing an edge detection procedure to detect straight lines in the grown region and generate an edge map of the grown region, the straight lines corresponding to geometric features in the 3D planar geometry of at least one object in the 2D image; preprocessing the image to remove spurious straight lines in the edge map; and grouping remaining straight lines into a first set and a second set of 3D parallel lines, wherein the first set of 3D parallel lines is perpendicular to the second set of 3D parallel lines in 3D space.