> For the complete documentation index, see [llms.txt](https://mpqc.swcmicroscopy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mpqc.swcmicroscopy.com/multi-photon-quality-control-with-scanimage.md). Agents can also search and read this documentation through its [MCP server](https://mpqc.swcmicroscopy.com/~gitbook/mcp).

# Multi-Photon Quality Control with ScanImage

Introduction to multiphoton-qc

This site explains how to use the [multiphoton-qc](https://github.com/SWC-Advanced-Microscopy/multiphoton-qc) repository to test and log the performance of your multi-photon microscope. This repository contains various tools for measuring microscope performance with ScanImage. In particular, there are functions for recording and measuring Point Spread Functions (PSFs), field of view size using an EM grid, measuring the electrical noise of the detector, and generating standardised measurements in units of photons.

### Main functions

* `mpqc.record.PSF` to easily acquire PSF stacks with ScanImage.
* `mpqc.record.lens_paper` to acquire standardised data from lens tissue.
* `mpqc.record.standard_light_source` to data from a standard light source
* `mpqc.record.electrical_noise` to data from a standard light source
* `mpqc.record.power` to meausre the power of the laser at the objective and calibrate ScanImage&#x20;
* `measurePSF` to estimate PSF size. For a demo, run `measurePSF('demo')`.
* `Grid2MicsPerPixel` measures the number of microns per pixel along x and y by analyzing an image of an EM grid.
* `mpqc.tools.meanFrame` plots the mean frame intensity as a function of time whilst you are scanning.

### Plotting mean frame intensity

Run `mpqc.tools.meanFrame` to bring up a figure window that plots mean frame intensity during scanning. This function is used for things like tweaking a pre-chirper. See `help mpqc.tools.meanFrame` for advanced usage.

### Known Obvious Issues

Please see the [list of known obvious issues](https://github.com/SWC-Advanced-Microscopy/measurePSF/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22known%20obvious%20issues%22) before using the software.

### Acknowledgments

Much of the early versions of this code were written in collaboration with Fred Marbach (then at the [SWC](https://www.sainsburywellcome.org/)), and Bruno Pichler and Mark Walling of [INSS](https://www.inss.org.uk/).
