get_eigenfaces: Calculate the eigenvectors and eigenvalues of the covariance...

Description Usage Arguments Value References Examples

View source: R/imageset_ef.R

Description

Makes use of the PCA function to perform the principle component analysis. The data is normalized before performing the PCA.

Usage

1
get_eigenfaces(td, nfaces = 15, quick = FALSE)

Arguments

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'.

Value

Returns n=1,...,nfaces Eigenfaces.

References

Marinovsky F., Wagner P., Gesichtserkennung mit Eigenfaces, FH Zittau/Görlitz

Examples

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)

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