Analysis: Drift Correction

Analysis: Drift Correction

A dSTORM acquisition is usually long and subject to drift (the image being slowly shifted to one direction) caused by, for example, temperature fluctuation. Drift Correction allows correcting for the drift as post-processing. There are two methods to perform a drift correction once the acquisition is completed:

Run drift correction in NimOS:

  1. Click on Analyze and click on Load Data to load the data of interest.
  2. Click on Calculate Drift Correction to calculate the drift and apply the correction to the data. Once the drift correction is completed, check/uncheck Apply Correction to activate/deactivate the correction. Note that all the filters should be disabled before the correction.

Run drift correction in PythONI:

  1. Click on Advanced > Python Console to open the PythONI console (For more details on PythONI, check here):
  2. Open the drift correction Python script by either clicking on File > New and copy-paste the Python codes into the new file, or copy the python script to "C:/Users/ONI/AppData/Local/OxfordNi_Nim/python_scripts" and click on Rescan Script Directories to add the script to the current working environment:
  3. Click on Load Data to load the localization data of interest and click on Run Code in the PythONI console to start the correction.
  4. Once the correction is finished, the correction will be applied to the localization data and the transformation matrix will be printed in the console. You may now check/uncheck Apply Correction to activate/deactivate the correction:

If at any point you are having issues with the correction process, please do not hesitate to contact the CX team.