Description Usage Arguments Value References Examples
Makes use of the PCA function to perform the principle component analysis. The data is normalized before performing the PCA.
1 | get_eigenfaces(td, nfaces = 15, quick = FALSE)
|
td |
an object of class 'imageset_ef'. List of arrays. Training data. |
nfaces |
a numeric vector of length 1. The desired number of eigenfaces. |
quick |
a logical vector of length 1. Determines if the PCA is done with 'quick=TRUE' or 'quick=FALSE'. |
Returns n=1,...,nfaces Eigenfaces.
Marinovsky F., Wagner P., Gesichtserkennung mit Eigenfaces, FH Zittau/Görlitz
1 2 3 4 | # Import Olivetti-faces
olivetti <- system.file("extdata","olivetti_X.csv",package="eigenfaces")
td <- load_imageset_ef(olivetti, c(64,64))
get_eigenfaces(td, 9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.