1. A method, comprising: performing by a computer: receiving a plurality of images of a pre-determined geometric pattern, wherein the plurality of images collectively cover an image field of a lens; and based on the plurality of images, generating a lens model that represents a spatially variant blur pattern across the image field of the lens.