Answer the question
In order to leave comments, you need to log in
How to optimize np.unravel_index?
Help optimize the search for indexes in an array.
np.unravel_index((np.abs(out_array - ty) + np.abs(out_array2 - tx)).argmin(), out_array.shape)
shape = (2024, 1028)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question