Description Usage Arguments Value Examples
View source: R/classification_ef.R
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
.
1 | classification_ef(img, td, nclosest = 3, neigenfaces = 15, quick = FALSE)
|
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: |
neigenfaces |
(optional, default: |
quick |
logical vector of length (TRUE or FALSE), see |
'imageset_ef' object containing the nclosest
images from td
, which are 'closest' to img
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.