Commit 0a20fd2d authored by Wallenfang, Nils's avatar Wallenfang, Nils

filter pixels with low ratio of amplitude to mean signal

parent 0ff051fc
......@@ -165,11 +165,15 @@ class SineCheck(QualityCheck):
# ignore this sample
filtered_coords.append(coords[i])
continue
if fit.mean > 2000:
elif fit.mean > 2000:
# very bright, likely to be outside of tissue
# ignore this sample
filtered_coords.append(coords[i])
continue
elif fit.mean / fit.amplitude > 30:
# ratio between mean and amplitude is too high -> too little signal
filtered_coords.append(coords[i])
continue
error = self.measure_func(sample, fit)
errors.append(error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment