A method and system deblurs images acquired of a scene by a camera. A
light field acquired of a scene is modulated temporally according to a
sequence of ons and offs. An optimal coding pattern is selected. The
modulated light field is integrated by a sensor of a camera during an
exposure time to generate an encoded input image. The encoded input image
is decoded according to a pseudo-inverse of a smearing matrix to produce
a decoded output image having a reduced blur.