1. An apparatus for coding images comprising: a light-sensitive sensor; and a coded lens array including a plurality of lenses arranged in a first dimension and a second dimension and coupled together to form a two dimensional coded pattern cyclically repeated at least once in both dimensions such that the two dimensional coded pattern appears at least twice in both dimensions, wherein the coded pattern is arranged to cause an overlapping of images projected from lenses onto the light-sensitive sensor.