1. A method comprising: projecting a display onto a surface; illuminating a region near the surface; capturing an image of the surface during the illumination; analyzing a variation of intensities across pixels in at least a portion of the image; determining a polarity associated with the portion of the image; and determining whether an object is touching the surface based at least partly on the analysis of the variation and on the determined polarity.