most_similar_img | R Documentation |
Find the most similar image in a folder.
most_similar_img(img, img_list, path = "matched_trees/mismatches/")
img |
An internal Image or array (load with [png::readPNG]) which should be transformed to the images in img_list |
img_list |
A list of files contained in path, e.g. dir(path, full.names=FALSE) |
path |
Path to the folder containing images to be evaluated. |
A list containing i) The transformed source image, ii) The target image which returned the highest similarity, iii) A list of the similarity scores for all evaluated images.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.