gerlichlab / looptrace

Fork (from EMBL Gitlab) of the looptrace project: https://git.embl.de/grp-ellenberg/looptrace
Apache License 2.0
2 stars 1 forks source link

Smooth background for subtraction in tracing #326

Open vreuter opened 5 months ago

vreuter commented 5 months ago

Right now, setting the value of subtract_background in the config file permits a user to specify a timepoint as background, e.g. a blank imaging timepoint, to improve pixel values for fits. However, this can increase pixel value variance. To prevent this, we should perhaps do something like take the mean or median pixel value in the background images, and just subtract that. This would also greatly simplify what we store (i.e., we'll still need to extract the background pixel volumes to take a measure of center, but then we won't need to store that NPZ stack but rather just the per-ROI measure of pixel value center (mean or median, e.g.) for background.

@TLSteinacker

follow-up on #324 #323 #322

vreuter commented 5 months ago

From @TLSteinacker

We should try both and see how it affects the control experiment (where we ideally expect 0nm between the two probes targeting the same position)