1. A method to transmit image data for a stereoscopic view, the method comprising: receiving, by a depth data generating unit, an image of one or more objects, wherein the image is a two-dimensional image with a superimposed spatial light pattern; generating, by the depth data generating unit, depth data associated with the image, wherein the depth data is based on at least a degree of blur of the spatial light pattern in a depth direction; and providing, by the depth data generating unit, the image together with the depth data to enable a stereoscopic view of the image.