Calculate Z values - UU-cellbiology/DoM_Utrecht GitHub Wiki
This function will calculate the Z coordinate for the data from Results table using the current astigmatic Z-calibration stored in the ImageJ registry.
Basically, for each row of the table, it will get the fitted values of width SD_X_(nm) and height SD_Y_(nm), subtract the second from the first and using the fitted polynomial, calculate Z_(nm) and Z_loc_error(nm) values.
Important details about this process:
- if the value of calculated Z_(nm) falls outside of the Z range specified during calibration PSF fit, it will be rounded to the closest range boundary (i.e. either Zmin or Zmax);
- if "Account for wobbling in X and Y" was selected during calibration creation, the corresponding values of X_(nm) and Y_(nm) will be corrected depending on the z position. Be careful if you calculate Z multiple times, save the original detection table;
- the value of the Z_loc_error(nm) is estimated using the "propagation of uncertanty" rule using SD_X_error(nm), SD_Y_error(nm) and the fitted polynomial function.