1. Method of generating geometric characteristics of a digitally encoded image, comprising: displaying the image; delimiting at least a portion of the image, wherein the delimited portion represents a substantially flat surface; applying a predetermined deformable geometric pattern to the image in the position of the delimited image portion; deforming the pattern so as to make it correspond to the image portion; and determining geometric characteristics of the surface from the deformation of the pattern.