classification_ef: Find the best matching faces of an 'imageset_ef' for a given...

Description Usage Arguments Value Examples

View source: R/classification_ef.R

Description

Finds the closest nclosest images in an object of class 'imageset_ef'. For the determination of the closest images neigenfaces are used. There are two possible modes (quick = TRUE, quick = FALSE). For further explanation see ?PCA.

Usage

1
classification_ef(img, td, nclosest = 3, neigenfaces = 15, quick = FALSE)

Arguments

img

an object of class 'image_ef', the functions searches for similar images to this image

td

an object of class 'imageset_ef', set of images where the function searches for similar images

nclosest

(optional, default: nclosest=3) an numeric vector of length 1, number of similar images to be ruturned

neigenfaces

(optional, default: neigenfaces=15) an numeric vector of length 1, number of eigenfaces used for finding the closest faces

quick

logical vector of length (TRUE or FALSE), see PCA

Value

'imageset_ef' object containing the nclosest images from td, which are 'closest' to img

Examples

1
2
3
4
5
# Import Olivetti-faces
olivetti <- system.file("extdata","olivetti_X.csv",package="eigenfaces")
td <- load_imageset_ef(olivetti, c(64,64))
img <- td[[1]]
closest <- classification_ef(img, td, quick = TRUE)

Osburg/eigenfaces documentation built on Aug. 26, 2020, 4:41 p.m.