> 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/faqs/standardised-targets-and-sources.md). Agents can also search and read this documentation through its [MCP server](https://mpqc.swcmicroscopy.com/~gitbook/mcp).

# Standardised targets and sources

Data from a microscope are usually saved in arbitrary units. Photons arrive at a detector, such as CMOS chip or a PMT, and are converted to a current. This current is typically then amplified, converted to a voltage, and digitized. The digitized data are saved as an image or displayed on-screen.&#x20;

In a multi-photon microscope the magnitude of the signal will depend upon a range of factors on both the excitation and detection arms of the microscope. On the excitation side: laser wavelength, laser power, pulse width, objective NA, and quality of the PSF. On the detection side: objective NA, quality of the detection path (including unwanted vignetting), filter specs, detector [QE](https://en.wikipedia.org/wiki/Quantum_efficiency), detector age/health, detector gain, and pre-amp gain.&#x20;

Given the range of variables in play, how do we determine microscope health? Is your microscope working as well today as it was three years ago? Furthermore, how does you microscope compare to another?  Assuming the microscope has been well designed, the two factors that we want to monitor are the quality of the excitation path (PSF) and the health of the detectors: PMTs can and do degrade over time.&#x20;

The solution is to acquire data from standard samples and convert the resulting image data from arbitrary units to photons. Once converted to photons, data can be compared quantitatively over time and even over different systems. The conversion of arbitrary units to photons is insensitive to gain, so comparisons are even valid across PMTs, PMT gains, and even different pre-amps. &#x20;

### Lens paper

Lens paper (e.g. purchased from ThorLabs) is useful standard sample. It is consistent from batch to batch, it contains structure, it bleaches slowly. Images of lens paper show a sparse structure of fibres that do not dim rapidly with depth and anyway it is intrinsically pretty thin. Lens paper can easily be sealed under a coverslip but note the paper must remain dry for imaging. Lens paper samples can be assessed in two ways:

&#x20;1\. Qualitatively. Here the user learns by experience that, say, a barely reasonable image of the lens tissue paper can be achieved at a power of 15 mW at the sample. Failure to get a decent image at that power would indicate a potential problem.

2\. Quantitatively. Here we would use a higher laser power, such as 50 to 100 mW, and analyse the data post-acquisition to calculate the mean number of photons emitted from the sample per pixel. If the same laser power is used each time, a deviation in mean photon count may indicate a problem with the microscope. A higher laser power is needed to provide a larger SNR for the measurement.

Lens paper at a known laser power is a reasonable choice for a standard structured target. If laser power is carefully checked before the recording, it can be used to compare different rigs. This is because we can convert the data to photons. If a standard source is imaged after the lens paper at the same gains, it can be converted to photons to compare the detection paths of different rigs. **NOTE:** these functions work but they are not finalised and documentation is sparse right now.

First record the lens paper. Do this at around 100 mW at the sample. The following command will record the lens paper at 4 different gains. The gains are set automatically **AND HAVE ONLY BEEN TESTED WITH MULTI-ALKALI PMTs SO FAR**.

```matlab
 mpqc.record.lens_paper
```

<figure><img src="https://1521207187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zmCqXEmICTAPZjyGAIY%2Fuploads%2F4ERa8PqWWzyWSLpuLteS%2FlensPaperV2.png?alt=media&amp;token=f0769852-6497-4f9e-b5e8-e70142675153" alt=""><figcaption></figcaption></figure>

Optional inputs&#x20;\- All inputs are optional parameter/value pairs.&#x20;

&#x20;'wavelength' - Excitation wavelength in nm\
&#x20;'power' - Excitation power at the sample in mW

Then take out the lens paper. CLOSE THE LASER SHUTTER. Record the standard source. This by default will record at the same gains as above.

```matlab
 mpqc.record.standard_light_source
```

Analyse this:

```matlab
     OUT = mpqc.tools.get_quantalsize_from_file
```

This will analyse one file at a time: returning the standard source mean photon count. The quality of the fit that underlies this should be assessed with `mpqc.tools.plotPhotonFit`.

<figure><img src="https://1521207187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3zmCqXEmICTAPZjyGAIY%2Fuploads%2FTNL5jAC6TEp1aKZyfPv0%2FphotonCountPlots.png?alt=media&amp;token=dbc1f49d-faea-47a1-bfc8-a0255f9a7380" alt=""><figcaption></figcaption></figure>
