Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size):
|
|
61 |
Integrate the contour along axis (-1) using the composite trapezoidal rule.
|
62 |
https://numpy.org/doc/stable/reference/generated/numpy.trapz.html#r7aa6c77779c0-2
|
63 |
"""
|
64 |
-
f_exp = np.interp(
|
65 |
coef = np.trapz(f_exp, t_values) / tau
|
66 |
return coef
|
67 |
|
|
|
61 |
Integrate the contour along axis (-1) using the composite trapezoidal rule.
|
62 |
https://numpy.org/doc/stable/reference/generated/numpy.trapz.html#r7aa6c77779c0-2
|
63 |
"""
|
64 |
+
f_exp = np.interp(t_values, t_list, xs + 1j * ys) * np.exp(-n * t_values * 1j)
|
65 |
coef = np.trapz(f_exp, t_values) / tau
|
66 |
return coef
|
67 |
|