pysted.bleach_funcs

Cython implementations of the photobleaching functions.

Functions

default_update_survival_probabilities(self, ...)

Update the survival probabilities of the fluorophores.

sample_molecules(self, ...)

Binomial sampling of the number of molecules at each position within the datamap.

pysted.bleach_funcs.default_update_survival_probabilities(self, i_ex, i_sted, p_ex, p_sted, step, bleached_sub_datamaps_dict, row, col, h, w, mask, prob_ex, prob_sted, k_ex=None, k_sted=None)

Update the survival probabilities of the fluorophores.

Parameters:
  • i_ex – The excitation intensity.

  • i_sted – The STED intensity.

  • p_ex – The excitation power.

  • p_sted – The STED power.

  • step – The time step.

  • bleached_sub_datamaps_dict – The datamaps of the bleached subregions.

  • row – The row of the datamap.

  • col – The column of the datamap.

  • h – The height of the datamap.

  • w – The width of the datamap.

  • mask – The mask of the subregion.

  • prob_ex – The excitation survival probability.

  • prob_sted – The STED survival probability.

  • k_ex – The excitation bleaching rate.

  • k_sted – The STED bleaching rate.

pysted.bleach_funcs.sample_molecules(self, bleached_sub_datamaps_dict, row, col, h, w, mask, prob_ex, prob_sted)

Binomial sampling of the number of molecules at each position within the datamap.

Parameters:
  • bleached_sub_datamaps_dict – The datamaps of the bleached subregions.

  • row – The row of the datamap.

  • col – The column of the datamap.

  • h – The height of the datamap.

  • w – The width of the datamap.

  • mask – The mask of the subregion.

  • prob_ex – The excitation survival probability.

  • prob_sted – The STED survival probability.