Source: https://www.kaggle.com/vicensgaitan/image-registration-the-r-way/notebook
knn_points( kpf_a, kpf_b, centers_a, centers_b, n = 2, ratio = 0.8, show_plot = F )
| kpf_a | matrix of features for image a |
|---|---|
| kpf_b | matrix of features for image b |
| centers_a | matrix of points for image a |
| centers_b | matrix of points for image b |
| n | number of neighbors to keep |
| ratio | ratio of first neighbor to second neighbor distance. Values smaller than this will be kept |
| show_plot | show a plot of matches kept? |