Two-photon excitation with temporally focused pulses can be combined with phase-modulation approaches, such as computer-generated holography and generalized phase contrast, to efficiently distribute light into two-dimensional, axially confined, user-defined shapes. Adding lens-phase modulations to 2D-phase holograms enables remote axial pattern displacement as well as simultaneous pattern generation in multiple distinct planes. However, the axial confinement linearly degrades with lateral shape area in previous reports where axially shifted holographic shapes were not temporally focused. Here we report an optical system using two spatial light modulators to independently control transverse- and axial-target light distribution. This approach enables simultaneous axial translation of single or multiple spatiotemporally focused patterns across the sample volume while achieving the axial confinement of temporal focusing. We use the system's capability to photoconvert tens of Kaede-expressing neurons with single-cell resolution in live zebrafish larvae.
State-of-the-art Ca 2+ imaging studies that monitor large-scale neural dynamics can produce video datasets that tally up to ∼100 TB in size (∼10 days transfer over 1 Gbit/s ethernet). Processing such data volumes requires automated, general-purpose and fast computational methods for cell identification that are robust to a wide variety of noise sources. We present EXTRACT, an algorithm that is based on robust estimation theory and uses graphical processing units (GPUs) to extract neural dynamics from a typical Ca 2+ video in computing times up to ∼10-times faster than imaging durations. We extensively validated EXTRACT on simulated and experimental data and processed 199 public datasets (∼12 TB) from the Allen Institute in a day. Showcasing its superiority over past cell extraction methods at removing noise contaminants, neural activity traces from EXTRACT allow more accurate decoding of animal behavior. Overall, EXTRACT is a powerful computational tool matched to the present challenges of neural Ca 2+ imaging studies in behaving animals.
Wavefront shaping with liquid-crystal spatial light modulators (LC-SLMs) is frequently hindered by a remaining fraction of undiffracted light, the so-called “zero-order.” This contribution is all the more detrimental in configurations for which the LC-SLM is Fourier conjugated to a sample by a lens, because in these cases this undiffracted light produces a diffraction-limited spot at the image focal plane. In this Letter we propose to minimize two-photon (2P) excitation of the sample, resulting from this unmodulated light, by introducing optical aberrations to the excitation beam. Aberrations are subsequently compensated by the LC-SLM, but only for the modulated part of the beam, and not for the zero-order component. In order to experimentally demonstrate the method, we use astigmatism as the optical aberration, by simply adding one or two cylindrical lenses in the optical path of the beam. A decrease in zero-order-induced 2P fluorescence intensity is demonstrated. Combining this approach with temporal focusing is shown to decrease zero-order fluorescence by a factor of .