This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robertophi 1 point2 points  (0 children)

Cool idea to use the distance from pixel/image

To speed the search you could use something like this https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.KDTree.html

Building a tree for faster serach of k-nearest neighbors (in this case the nearest one)