Skip to content
Snippets Groups Projects
Commit caa55a7c authored by tomrink's avatar tomrink
Browse files

snaphot...

parent 78c8e8ff
Branches
No related tags found
No related merge requests found
...@@ -1385,7 +1385,7 @@ def downscale_2x(original, smoothing=False, samples_axis_first=False): ...@@ -1385,7 +1385,7 @@ def downscale_2x(original, smoothing=False, samples_axis_first=False):
return lr return lr
def resample(x, y, z, x_new, y_new): def resample(y, x, z, y_new, x_new):
z_intrp = [] z_intrp = []
for k in range(z.shape[0]): for k in range(z.shape[0]):
z_k = z[k, :, :] z_k = z[k, :, :]
...@@ -1394,6 +1394,6 @@ def resample(x, y, z, x_new, y_new): ...@@ -1394,6 +1394,6 @@ def resample(x, y, z, x_new, y_new):
return np.stack(z_intrp) return np.stack(z_intrp)
def resample_one(x, y, z, x_new, y_new): def resample_one(y, x, z, y_new, x_new):
f = RectBivariateSpline(x, y, z) f = RectBivariateSpline(x, y, z)
return f(x_new, y_new) return f(x_new, y_new)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment