1. A method for reducing blur in an image of a scene acquired by a camera, comprising the steps of: selecting an optimal temporally coded pattern; temporally modulating light of a scene acquired and integrated by a camera image sensor according to the temporally coded pattern during an exposure time to generate an encoded input image, wherein the exposure time has an arbitrary duration, and the temporally coded pattern is a binary on and off sequence with an arbitrary length; and decoding the encoded input image according to an inverse of the coded pattern to produce a decoded output image having a reduced blur.