As ThunderSTORM uses real units (photons, nanometers), accurate camera parameters need to be supplied by the user. The effective pixel size can be determined from the actual pixel pitch of the camera sensor and from the total magnification of the optical setup, or by performing a spatial calibration using a stage micrometer. The detector response (photoelectrons per A/D count and base level offset of the camera digitizer) can be obtained from the specification sheet supplied by the camera manufacturer or from photon transfer curve measurements (the dependence of the variance on the mean value of pixel intensities), see e.g., [1, 2]. Correct pixel size is important for proper spatial calibration of the rendered images. Camera conversion gain and offset influence simulated images and the estimates of localization precision.
Pixel size is used to convert molecular coordinates from pixels to nm. It is the size of one camera pixel as projected to the sample plane.
For CCD cameras, the image intensity is converted to the number of photoelectrons according to the formula
and for EMCCD cameras, the conversion is according to the formula
Here
is the number of photolectrons,
is the CCD sensitivity
(in photons per A/D count),
is the EM gain for EMCCD cameras,
is the image intensity (in A/D counts), and
is the base
level specifying the camera digitizer offset (in A/D counts). If the
EM gain checkbox is not selected, a CCD camera is assumed.
Note that the outcome of setting the EM gain to 1 and unchecking the EM gain checkbox is different as the localization uncertainty of molecular positions is computed using different formulas for CCD and EMCCD cameras. Also a stochastic nature of EM gain is modeled in the generator of simulated data.