Source: https://www.kaggle.com/vicensgaitan/image-registration-the-r-way/notebook
1 2 3 4 5 6 7 8 9 | 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? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.