most_similar_img: Find the most similar image in a folder.

View source: R/fieldplot_s3.R

most_similar_imgR Documentation

Find the most similar image in a folder.

Description

Find the most similar image in a folder.

Usage

most_similar_img(img, img_list, path = "matched_trees/mismatches/")

Arguments

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.

Value

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.


Silviculturalist/fieldcoordinate documentation built on April 17, 2022, 7:31 a.m.