Confocal microscopes use point illumination and a spatial pinhole in front of the detector to eliminate out-of-focus light. This results in a high-resolution image of a thin section of the sample. The technique involves scanning the sample point-by-point and reconstructing the image with the help of a computer. This method is ideal for three-dimensional imaging of cellular structures.