1. An imaging apparatus comprising: one or more apertures configured to receive light from a scene; a spatial mask arranged to apply different spatial filtering functions to the light from the scene to produce an encoded image of the scene, features of the mask defining a pitch and being adjacent along an axis of the spatial mask, the one or more apertures being fewer in number than the different spatial filtering functions; and sensor elements defining a pitch and being configured to sense the encoded image of the scene, the pitch of features of the mask being smaller than the pitch of the sensor elements.