Skip to content
Snippets Groups Projects
Commit dd498fac authored by Martin Teichmann's avatar Martin Teichmann
Browse files

remove mean sustraction in integration

that was a quick hack that should not be done, background subtraction is
the way to go.
parent ba978d93
No related branches found
No related tags found
1 merge request!224changes resulting from proposal 3154 (Rohringer)
...@@ -257,7 +257,6 @@ def parabola(x, a, b, c=0): ...@@ -257,7 +257,6 @@ def parabola(x, a, b, c=0):
def integrate(image, factor=FACTOR, range=RANGE, curvature=(CURVE_A, CURVE_B), ): def integrate(image, factor=FACTOR, range=RANGE, curvature=(CURVE_A, CURVE_B), ):
image = image - image.mean()
x = np.arange(image.shape[1])[None, :] x = np.arange(image.shape[1])[None, :]
y = np.arange(image.shape[0])[:, None] y = np.arange(image.shape[0])[:, None]
ys = factor * (y - parabola(x, curvature[1], curvature[0])) ys = factor * (y - parabola(x, curvature[1], curvature[0]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment