The X-ray fan beam coded aperture transmission and diffraction imaging system schematic and prototype. A) Schematic of the X-ray fan beam coded aperture transmission and diffraction system, where a collimated X-ray source produces a fan beam that illuminates a sample while signal is acquired at the detector. Scatter produced by the sample passes through the 2D coded aperture and is encoded prior to its measurement at the detector (purple = encoded scatter making it to detector, red = scatter blocked by coded aperture, teal = primary fan beam) (online version only). Scatter data is acquired sequentially after transmission scans. Denoted distances are from X-ray source focal spot to X-ray entrance of each object B) Photo of the constructed X-ray fan beam coded aperture imaging system, including a built-in monitor, computer, and lead shielding for operation, along with GUI apps for data acquisition and display.