diff --git a/modules/util/util.py b/modules/util/util.py index c40af26c090b5f655645306d7b702834ef454e04..912d6bb438094aa4c998cf49bb5f1951aa911c20 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -1385,7 +1385,7 @@ def downscale_2x(original, smoothing=False, samples_axis_first=False): return lr -def resample(y, x, z, y_new, x_new): +def resample(x, y, z, x_new, y_new): z_intrp = [] for k in range(z.shape[0]): z_k = z[k, :, :] @@ -1394,6 +1394,6 @@ def resample(y, x, z, y_new, x_new): return np.stack(z_intrp) -def resample_one(y, x, z, y_new, x_new): +def resample_one(x, y, z, x_new, y_new): f = RectBivariateSpline(x, y, z) - return f(x_new, y_new) \ No newline at end of file + return f(x_new, y_new)