A revolution in functional brain imaging techniques is in progress in the field of neurosciences. Optical imaging techniques, such as high-density diffuse optical tomography (HD-DOT), in which source-detector pairs of probes are placed on subjects’ heads, provide better portability than conventional functional magnetic resonance imaging (fMRI) equipment. However, these techniques remain costly and can only acquire images at up to a few measurements per square centimetre, even when multiple detector probes are employed. In this study, we demonstrate functional brain imaging using a compact and affordable setup that employs nanosecond-order pulsed ordinary laser diodes and a time-extracted image sensor with superimposition capture of scattered components. Our technique can simply and easily attain a high density of measurement points without requiring probes to be attached, and can directly capture two-dimensional functional brain images. We have demonstrated brain activity imaging using a phantom that mimics the optical properties of an adult human head, and with a human subject, have measured cognitive brain activation while the subject is solving simple arithmetical tasks.