Skip to content

Commit

Permalink
Use np.reshape function instead of .reshape method.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Apr 14, 2024
1 parent dfd5930 commit 7f0b7f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion colour_hdri/distortion/vignette.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,9 @@ def correct_vignette_RBF(
epsilon=epsilon,
)

I_v = interpolator(tstack([y_1, x_1]).reshape([-1, 2])).reshape(height, width)
I_v = np.reshape(
interpolator(np.reshape(tstack([y_1, x_1]), (-1, 2))), (height, width)
)

image[..., i] /= I_v

Expand Down

0 comments on commit 7f0b7f5

Please sign in to comment.