load_dataset: Load Training Data and Compute Eigenfaces.

Description Usage Arguments Value Examples

View source: R/pca.R

Description

The specified data set is loaded (images that have been loaded with load_pgm_images before) and face images are converted to face vectors. The mean face is subtracted from all face vectors. Subsequently, the covariance matrix is computed and eigenvalues and corresponding eigenvectors (the eigenfaces) are determined.

Usage

1
load_dataset(images, max_eigenfaces = 0L, standardized = TRUE)

Arguments

images

double array; Images for which eigenfaces will be computed. (required)

max_eigenfaces

integer; Number of eigenfaces that will be computed. (optional)

standardized

logical; Specify whether or not images should be standerdized (subtract mean image from every image). (optional)

Value

A list containing the eigenfaces and other information (?dataset for more information).

Examples

1
2
3
4
## Not run: 
my_dataset <- load_dataset(my_dataset_images, max_eigenfaces=100L, standardized=TRUE)

## End(Not run)

JohannesKlueh/REigenfaces documentation built on Oct. 24, 2020, 7:45 p.m.