Coded apertures or coded-aperture masks are grids, gratings, or other patterns of materials opaque to various wavelengths of electromagnetic radiation. The wavelengths are usually high-energy radiation such as X-rays and gamma rays. By blocking radiation in a known pattern, a coded "shadow" is cast upon a plane. The properties of the original radiation sources can then be mathematically reconstructed from this shadow. Coded apertures are used in X- and gamma ray imaging systems, because these high-energy rays cannot be focused with lenses or mirrors that work for visible light.
Rationale
Imaging is usually made at optical wavelengths by lenses and mirrors. However, for hard X-rays and γ-rays, lenses and mirrors do not exist, or else may be too complex or expensive for a specific application. Image modulation by apertures is therefore often used instead. The pinhole camera is the most basic form of such a modulation imager, but its disadvantage is low throughput, as its small aperture allows through little radiation. Only a tiny fraction of the light passes through the pinhole, which causes a low signal-to-noise ratio. To solve this problem, the mask can contain many holes, in one of several particular patterns, for example. Multiple masks, at varying distances from a detector, add flexibility to this tool. Specifically the modulation collimator, invented by Minoru Oda, was used to identify the first cosmic X-ray source and thereby to launch the new field of X-ray astronomy in 1965. Many other applications in other fields, such as tomography, have since appeared. In a coded aperture more complicated than a pinhole camera, images from multiple apertures will overlap at the detector array. It is thus necessary to use a computational algorithm to reconstruct the original image. In this way a sharp image can be achieved without a lens. The image is formed from the whole array of sensors and is therefore tolerant to faults in individual sensors; on the other hand it accepts more background radiation than a focusing-optics imager, and therefore is normally not favored at wavelengths where these techniques can be applied. The coded aperture imaging technique is one of the earliest forms of computational photography and has a strong affinity to astronomical interferometry. Aperture-coding was first introduced by Ables and Dicke and later popularized by other publications.
Well known types of masks
Different mask patterns exhibit different image resolutions, sensitivities and background-noise rejection, and computational simplicities and ambiguities, aside from their relative ease of construction.